Hi all,
in the "Apache xml-security" project, I must perform many operations on
XPath node sets. Many operations are questions in the form:
"Is the Node 'n' in the nodeset selected by the
following XPath expression?".
At the moment, to do this task, I do the following:
NodeList selec
First of all, you must separate between attributes of type ID, which is
defined by a DTD or Schema and there also exist attributes which local name
is "Id". For instance, you can say that all "Id" attributes in an Element
in the XML Signature or XML Encryption namespace are also of type ID. So
Hi,
as I guess from your e-mail-Adresse (rsasecurity), your question relates to
XML Signature or Canonical XML. So if this is the case, you probably want
to have a look at the class XMLSignatureInput [1] from the xml-security
project (Java only, sorry). This is a container class which contains
Hi Vincent,
--On Mittwoch, 27. März 2002 15:53 +0100 "MAHE Vincent FTRD/DIH/REN"
<[EMAIL PROTECTED]> wrote:
>
> I would like to serialize my Document with Xalan but the problem is that
> if the element is empty, it serializes it as .
> How can I explicitly serialize my node as ?
Use Canonica
Hi all,
question about the XPathContext. For using the in XML Signature defined
XPath function here() which basically returns the Node in which the XPath
String occured, I had to create a new XPathContext which has an owner [1]
node. Now I try ti migrate to the new CachedXPathAPI object and wh
>> Isn't it possible to get the functionality from 2.2D10 back with
> xmlns:xml support?
>
> It is. The question is just how best to approach it.
>
> I can put in a short-term kluge to special-case that node and bypass the
> bug it exposed. Or I can try to fix the real bug, which is probably goin
>> When I start all my unit tests I get many (8) exceptions that all relate
> to
>> the same problem. What I do generally is to register a new XPath function
>> (the here() function as defined in XML Signature) and then I apply some
>> XPathes using that function.
>
> How complicated is that funct
Dear Xalan-Gurus,
I need help for the Apache xml-security project. I think for a
Xalan-developer it should be relatively easy to tell me whether it's a
problem in xml-security or xml-xalan.
Unfortunately I'm not deep enough inside Xalan to find the bug myself.
Using Xalan v2.2.D10, the softwa
Hi Joseph,
--On Montag, 26. November 2001 11:08 -0500 [EMAIL PROTECTED] wrote:
>> The original bug which was affecting xml-security was
>> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2650 .
>
> ...
>
> So if your problem is that xml-security is sensitive to that difference,
> we've got a m
Hi Sam,
could you try GUMP again against the xml-security cvs? It should run
without errors now.
Christian
--On Montag, 26. November 2001 10:06 -0500 Sam Ruby <[EMAIL PROTECTED]>
wrote:
> Joseph Kesselman wrote:
>>
>>> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4336
>>
>> A fix which
This problem is also documented on
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4336
Simply to say: The xmlns:xml=".." attribute which is added by the new Xalan
has no owner document...
Christian
--On Montag, 26. November 2001 08:15 -0500 Sam Ruby <[EMAIL PROTECTED]>
wrote:
> Would it
Hi Lisa,
> How do I ask a xalan.jar what version it is?
String xercesVerStr = org.apache.xerces.framework.Version.fVersion;
String xalanVerStr =
org.apache.xalan.processor.XSLProcessorVersion.S_VERSION;
Christian
Hi Scott,
--On Montag, 20. August 2001 23:56 -0400 [EMAIL PROTECTED] wrote:
> Anyway, I think the thing to do is break XPathContext into XPathContext
> and XSLTContext. The XPath context should only have access to the context
> defined by http://www.w3.org/TR/xpath#section-Introduction, the bas
Hi all,
I have a question whether I use the org.apache.xpath.XPathContext class
correctly: I have implemented the here() function from the XML Signature
spec [1]. This function needs some input which is not available from XPath
directly:
"The here function returns a node-set containing the
assumes that anything registered without a package name is in its
> own functions package.
>
> My output is:
>
> C:\Temp>java foo.FuncHere
> Registered class foo.FuncHere for here() function in internal table
> FuncHere.execute() has been called
> #NODESET
>
/*
* Hi Xalan-Gurus,
* dear Gary,
*
* My extension function crashes (and i programmed some things that I took
* from the org.apache.xpath.functions package but did not understood
completely).
*
* Could you please have a short (or longer) look at the code and give me
some advise?
*
* Reg
Hi all,
I want to extend the XPath function library with a here() function and use
this self-defined function in the XPathAPI:
Node res = XPathAPI.selectSingleNode(ctx, "here()", nsCtx);
How can I do something like that?
Christian
--- (taken from XML Signature spec) ---
The function here()
Hi all,
I have a document node which I apply an XPath to which results in a node
set. After that, I want to apply an XPath that takes a nodeset and returns
a String. How can I do that in two separate steps?
Instead of applying "string(.//. | .//@* | .//namespace::*)" to the doc
like in
XObj
Hi all,
How can I transform an org.w3c.dom.NodeList into an XPath node set on which
I can use XPath expressions to select nodes?
Example: I use XPathAPI.selectNodeList to get a NodeList; anter that, I
want to apply another XPath selection to it...
Christian
Hi,
How can I access all visible namespaces for a particular Element in DOM?
If I have the 'C' Element, how do I get a list which contains the 'a' and
'b' namespace desclarations, which are in scope?
20 matches
Mail list logo