Hi Dave,
ok, here we go:
sample xml file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<addresses>
<address id="1">
<title />
<firstname>Michael</firstname>
<lastname>Baumg�rtner</lastname>
<email>[EMAIL PROTECTED]</email>
</address>
</addresses>
sample xpath expression:
"/addresses/address/title"
This is the output I get with the provided XPathWrapper example:
| mib@lxdev70:~/temp$ XPathWrapper addresses.xml / /
| the result set has 1 strings
| item 1= ""
| mib@lxdev70:~/temp$ XPathWrapper addresses.xml /
/addresses/address/title
| the result set has 2 strings
| item 1= "title"
| item 2= "title"
And this is the output I get with my program
| mib@lxdev70:~/temp$ testselektor addresses.xml
/addresses/address/title
| illegal axis name: title
| pattern = '/addresses/address/title'
| Remaining tokens: ( 'title'), at line number 0 at offset 0
The difererences between XPathWrapper and my implementation are
- I'm always using the root element as context node.
- I have to use the mapping from xerces dom to the xalan dom
because I have already a xerces dom and can't use xalan to parse
the xml file.
> Clearly something's wrong with
> the expression you're trying to evaluate, or there's
> something wrong with
> the processor.
That's not clear for me. I think the way I'm using the processor
(or the mapping xerces<->xalan) is wrong.
Thanks
Michael
> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 10. September 2001 20:51
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: 'illegal axis name' when using the xpath processor
>
>
>
> Michael,
>
> This list is fine for posting your message, but you still
> haven't posted
> the expression that is causing the error. Clearly
> something's wrong with
> the expression you're trying to evaluate, or there's
> something wrong with
> the processor. Unless you post some sample expression and xml you're
> trying to process, there's not a thing we can do to help.
>
> Dave
>
>
>
>
>
> Michael
>
> Baumg�rtner To:
> "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> <[EMAIL PROTECTED] cc: (bcc:
> David N Bertoni/CAM/Lotus)
> > Subject: AW:
> 'illegal axis name' when using the xpath processor
>
>
> 09/10/2001 02:17
>
> PM
>
> Please respond
>
> to xalan-dev
>
>
>
>
>
>
>
>
> Hi Dave,
>
> I even don't know if its a bug in xalan, I'm almost sure
> it's a bug in my implementation (in how I use the
> XPathProcessor). The documentation about the use of the
> XPathProcessor of xalan is not very detailed (mostly
> the one sample 'XPathWrapper'). So this is not a bug report.
>
> The problem that I have with the XPathWrapper example is that it
> uses xalan to parse the xml file and so there's no need to use
> the XercesParserLiaison and XercesDocumentBridge.
>
> It seems that I'm on the wrong mailing list, but I couldn't
> find a Xalan-C User List and tought this one would fit for
> both, developers and users of xalan.
>
> Michael
>
>
> > -----Urspr�ngliche Nachricht-----
> > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Gesendet: Montag, 10. September 2001 19:18
> > An: [EMAIL PROTECTED]
> > Betreff: Re: AW: AW: 'illegal axis name' when using the xpath
> > processor
> >
> >
> >
> > Michael,
> >
> > Unless you provice the XPath expression that you're using,
> > there's no way
> > we can guess what's going on. Please create a bug report in
> > Bugzilla and
> > provide:
> >
> > 1. The expression that's causing the problem.
> > 2. A small source XML file that we can use to reproduce
> > the problem.
> >
> > Thanks,
> >
> > Dave
> >
> >
> >
> >
> >
> > Michael
> >
> > Baumg�rtner To:
> > "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> > <[EMAIL PROTECTED] cc: (bcc:
> > David N Bertoni/CAM/Lotus)
> > > Subject: AW:
> > AW: 'illegal axis name' when using the xpath processor
> >
> >
> > 09/10/2001 01:06
> >
> > PM
> >
> > Please respond
> >
> > to xalan-dev
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi Paul,
> >
> > I don't use a xsl file. I do pretty much the same
> > as in the XPathWrapper example (I can't use the
> > XPathEvaluator interface 'cause I'm stuck with
> > version 1.1 of Xalan).
> >
> > ...
> >
> >
> >
>
>
>
>
smime.p7s