Set vs. NodeList

2002-05-23 Thread Christian Geuer-Pollmann
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

Re: locate an element with certain Id attribute

2002-04-22 Thread Christian Geuer-Pollmann
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

RE: XPath - NodeSet - Xerces Dom Node List

2002-04-01 Thread Christian Geuer-Pollmann
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

Re: How can I serialize my XML doc with an opening and closing tag

2002-03-27 Thread Christian Geuer-Pollmann
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

XPathContext.setDTMManager(DTMManager dtmManager)

2001-11-30 Thread Christian Geuer-Pollmann
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

Re: Need a helpful Xalan-guy for xml-security

2001-11-29 Thread Christian Geuer-Pollmann
>> 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

Re: Need a helpful Xalan-guy for xml-security

2001-11-27 Thread Christian Geuer-Pollmann
>> 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

Need a helpful Xalan-guy for xml-security

2001-11-27 Thread Christian Geuer-Pollmann
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

Re: [GUMP] Build Failure - Security

2001-11-26 Thread Christian Geuer-Pollmann
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

Re: [GUMP] Build Failure - Security

2001-11-26 Thread Christian Geuer-Pollmann
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

Re: [GUMP] Build Failure - Security

2001-11-26 Thread Christian Geuer-Pollmann
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

Re: Determining xalan.jar version

2001-08-21 Thread Christian Geuer-Pollmann
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

Re: Cleanup of XPathContext & definition of XSLTContext

2001-08-21 Thread Christian Geuer-Pollmann
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

Philosophy: Correct use of org.apache.xpath.XPathContext

2001-08-20 Thread Christian Geuer-Pollmann
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

Re: Using an own function with the XPathAPI

2001-08-16 Thread Christian Geuer-Pollmann
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 >

Re: Using an own function with the XPathAPI

2001-08-16 Thread Christian Geuer-Pollmann
/* * 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

Using an own function with the XPathAPI

2001-08-10 Thread Christian Geuer-Pollmann
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()

How to apply two XPath in a sequence?

2001-08-06 Thread Christian Geuer-Pollmann
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

How to transform a NodeList into an XPath node set?

2001-08-01 Thread Christian Geuer-Pollmann
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

How to access NS nodes

2001-07-16 Thread Christian Geuer-Pollmann
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?