RE: XPathAPI help needed

2001-12-03 Thread Voytenko, Dimitry
This is what I did (test11.xml contained XML you provided): DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance (); dbf.setNamespaceAware (true); DocumentBuilder db = dbf.newDocumentBuilder (); Document doc = db.parse ("test11.xml"); // Node res = XPathAPI.sele

RE: XPathAPI help needed

2001-12-03 Thread Scott Moore
xml is the string that contains the fault. // Instantiate a DocumentBuilderFactory. javax.xml.parsers.DocumentBuilderFactory dFactory = javax.xml.parsers.DocumentBuilderFactory.newInstance(); dFactory.setNamespaceAware(true); dFactory.setValidating(false); // Use the D

cvs commit: xml-xalan/c/Tests/Harness FileUtility.cpp

2001-12-03 Thread dbertoni
dbertoni01/12/03 14:27:34 Modified:c/Tests/Harness FileUtility.cpp Log: Added new #define. Revision ChangesPath 1.28 +2 -1 xml-xalan/c/Tests/Harness/FileUtility.cpp Index: FileUtility.cpp ==

cvs commit: xml-xalan/c/Tests/Conf conf.dsp

2001-12-03 Thread dbertoni
dbertoni01/12/03 14:24:13 Modified:c/Tests/Conf conf.dsp Log: Fixed include directories. Revision ChangesPath 1.3 +2 -2 xml-xalan/c/Tests/Conf/conf.dsp Index: conf.dsp === RCS file: /home

cvs commit: xml-xalan/c/Tests/Conf conf.cpp

2001-12-03 Thread dbertoni
dbertoni01/12/03 14:24:03 Modified:c/Tests/Conf conf.cpp Log: Removed broken assumption that all paths should be made absolute. Revision ChangesPath 1.14 +11 -8 xml-xalan/c/Tests/Conf/conf.cpp Index: conf.cpp ==

cvs commit: xml-xalan/c/Tests/Harness FileUtility.hpp

2001-12-03 Thread dbertoni
dbertoni01/12/03 14:23:41 Modified:c/Tests/Harness FileUtility.hpp Log: Fixed pathSep definition. Revision ChangesPath 1.22 +3 -3 xml-xalan/c/Tests/Harness/FileUtility.hpp Index: FileUtility.hpp ===

cvs commit: xml-xalan/c/Tests/Harness FileUtility.cpp

2001-12-03 Thread dbertoni
dbertoni01/12/03 14:23:32 Modified:c/Tests/Harness FileUtility.cpp Log: Make sure to reset the current directory back after changing to see if it exists. Revision ChangesPath 1.27 +8 -7 xml-xalan/c/Tests/Harness/FileUtility.cpp Index: FileUtility.cpp ===

DO NOT REPLY [Bug 5251] New: - ApplyXPath should support namespaced xpaths.

2001-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

cvs commit: xml-xalan/c/src Makefile.in

2001-12-03 Thread dbertoni
dbertoni01/12/03 13:36:19 Modified:c/srcMakefile.in Log: Added new deps for conformance executable. Revision ChangesPath 1.68 +27 -6 xml-xalan/c/src/Makefile.in Index: Makefile.in === R

RE: XPathAPI help needed

2001-12-03 Thread Voytenko, Dimitry
It might be because you don't load your Document properly. How do you do this? -Original Message- From: Scott Moore [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 13:24 To: '[EMAIL PROTECTED]' Subject: RE: XPathAPI help needed Okay, I'm really getting frustrated. I've gotte

cvs commit: xml-xalan/c/Tests/Harness XMLFileReporter.hpp XMLFileReporter.cpp FileUtility.hpp FileUtility.cpp

2001-12-03 Thread dbertoni
dbertoni01/12/03 13:28:56 Modified:c/Tests/Harness XMLFileReporter.hpp XMLFileReporter.cpp FileUtility.hpp FileUtility.cpp Log: Cross-platform fixes. Revision ChangesPath 1.8 +8 -4 xml-xalan/c/Tests/Harness/XMLFileReporter.hpp Inde

DO NOT REPLY [Bug 4995] - Xalan doesn't work with non-document DOM source

2001-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

RE: XPathAPI help needed

2001-12-03 Thread Scott Moore
Okay, I'm really getting frustrated. I've gotten to the point where it will return an XObject. I then call the nodelist() method and it returns a NodeList, but it's always empty. If I call getType(), it returns 4, which is a Nodeset, so that seems to be correct. Here's the XML I'm searching ag

cvs commit: xml-xalan/c/Tests/Conf conf.cpp

2001-12-03 Thread dbertoni
dbertoni01/12/03 12:19:00 Modified:c/Tests/Conf conf.cpp Log: Removed unnecessary include file. Revision ChangesPath 1.13 +0 -1 xml-xalan/c/Tests/Conf/conf.cpp Index: conf.cpp === RCS file

cvs commit: xml-xalan/c/Tests/Conf conf.dsp

2001-12-03 Thread dbertoni
dbertoni01/12/03 12:15:27 Modified:c/Tests/Conf conf.dsp Log: Fixed include path. Revision ChangesPath 1.2 +1 -1 xml-xalan/c/Tests/Conf/conf.dsp Index: conf.dsp === RCS file: /home/cvs/xm

cvs commit: xml-xalan/c/Tests/Conf conf.cpp

2001-12-03 Thread dbertoni
dbertoni01/12/03 12:15:10 Modified:c/Tests/Conf conf.cpp Log: Fixed include directives. Revision ChangesPath 1.12 +4 -4 xml-xalan/c/Tests/Conf/conf.cpp Index: conf.cpp === RCS file: /home/

cvs commit: xml-xalan/c/src Makefile.in

2001-12-03 Thread dbertoni
dbertoni01/12/03 12:07:50 Modified:c/srcMakefile.in Log: Added new deps for conformance executable. Revision ChangesPath 1.67 +16 -1 xml-xalan/c/src/Makefile.in Index: Makefile.in === R

DO NOT REPLY [Bug 1501] - xsltc should support nonstatic external java functions

2001-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

RE: XPathAPI help needed

2001-12-03 Thread Voytenko, Dimitry
Class XNodeSet is subclass of XObject, which reimplements nodelist() method. If XPath expression results in node-set, then result will be XNodeSet objects and you'll be able to use it. -Original Message- From: Scott Moore [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 11:19 To

RE: XPathAPI help needed

2001-12-03 Thread Scott Moore
Hmm, I just read the detailed Javadocs and it says the following: nodelist public NodeList nodelist() throws TransformerException Cast result object to a nodelist. Always issues an error. Returns: null Throws: TransformerException - Is this correct? Seems silly to have a

RE: XPathAPI help needed

2001-12-03 Thread Scott Moore
Okay, If I want the equivalent of selectSingleNode() or selectNodeList(), is this the correct way to do it? selectSingleNode XPathAPI.eval(mynode, xpathexp, new PrefixResolverDefault(contextNode)).nodelist().item(0); selectNodeList -- XPathAPI.eval(mynode, xpathexp,

RE: XPathAPI help needed

2001-12-03 Thread Paul Brown
> [Scott.Moore at netDecide.com] > Subject: RE: XPathAPI help needed > I've tried what you suggested, but it won't compile because the > namespaceNode (3rd parameter) must be of type Node. For instance, > Node n = XPathAPI.selectSingleNode(currentNode, xpath, > new org.apache.xml

RE: XPathAPI help needed

2001-12-03 Thread Scott Moore
Paul, I've tried what you suggested, but it won't compile because the namespaceNode (3rd parameter) must be of type Node. For instance, Node n = XPathAPI.selectSingleNode(currentNode, xpath, new org.apache.xml.utils.PrefixResolverDefault(contextNode)); doesn't compile. What a

DO NOT REPLY [Bug 5242] - ArrayIndexOutOfBounds Exception

2001-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

cvs commit: xml-xalan/java/src/org/apache/xml/dtm/ref DTMDefaultBaseIterators.java

2001-12-03 Thread jkesselm
jkesselm01/12/03 10:08:12 Modified:java/src/org/apache/xml/dtm/ref DTMDefaultBaseIterators.java Log: Bugzilla 5242: Special-case initializing iteration from Document node -- one-liner wasn't safe. Revision ChangesPath 1.10 +8 -1 xml-xalan/java/src/org/apache/

DO NOT REPLY [Bug 5242] - ArrayIndexOutOfBounds Exception

2001-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 5242] - ArrayIndexOutOfBounds Exception

2001-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 5242] - ArrayIndexOutOfBounds Exception

2001-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 5242] - ArrayIndexOutOfBounds Exception

2001-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

DO NOT REPLY [Bug 5242] New: - ArrayIndexOutOfBounds Exception

2001-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bu

Re: XSL trans dies on Windows (C++)

2001-12-03 Thread Matt Leinhos
Paul, Thank you for your reply. The problem I'm having is that the process method doesn't return at all -- it neither throws an exception nor returns, which is very bad for what I need to do. Would you please tell me if the process method returns for you, even when relative paths are given, as in

RE: XPathAPI help needed

2001-12-03 Thread Scott Moore
Thank you very much! The code is exactly what I needed. Thanks again, Scott -Original Message- From: Paul Brown [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 11:10 AM To: [EMAIL PROTECTED] Subject: RE: XPathAPI help needed > [Scott.Moore at netDecide.com] > Subject: XPa

RE: XPathAPI help needed

2001-12-03 Thread Paul Brown
> [Scott.Moore at netDecide.com] > Subject: XPathAPI help needed > Everything works fine unless the XML has namespaces and I try to > reference them in my XPath expression. You have two choices: 1) You need to create a dummy prefix resolver that knows about your namespaces; you can do this by i

XPathAPI help needed

2001-12-03 Thread Scott Moore
I posted this question on the Xalan Java User List, but didn't get any responses. I'm hoping someone here can help me. Both Xalan 2.2.D11 and 2.2.D13 fail. I'm trying to select a node from a DOM using the XPathAPI.selectSingleNode() call. Everything works fine unless the XML has namespaces an