Subject: RE: Xpath expression with " | "
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 5 Aug 2004 11:11:08 +0100
|
> i found on an old xsl an "Xpath" expression like this:
>
>
> <xsl:if test=" /AAA /BBB/( CCC | EEE ) [ . != '']">
This is legal in XPath 2.0 but not in XPath 1.0.
It might also have been legal in Microsoft's WD-xsl dialect, I have no idea.
In XPath 1.0 it needs to be expanded to
(/AAA/BBB/CCC | /AAA/BBB/EEE ) [ . != '']
Michael Kay
> <xsl:apply-template.........
>
> i test it with xalan/Tomcat (last version) and have the error for this
> line:
>
> A stage of site was awaited after the token ''/'' or ''//''
>
> the expression /BBB/( CCC | EEE ) is not valid ?
> Is there an alternativ grammar for multi union ?
>
> merci
|