Subject: Re: [xsl] Xpath expression with " | " From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx> Date: Thu, 5 Aug 2004 09:36:12 +0100 |
Hi, > i found on an old xsl an "Xpath" expression like this: > > <xsl:if test=" /AAA /BBB/( CCC | EEE ) [ . != '']"> > <xsl:apply-template......... You can't have union expressions within steps in XPath 1.0. You need to do: (/AAA/BBB/CCC | /AAA/BBB/EEE)[. != ''] Ironically, unions in steps is legal (again?) in XPath 2.0... Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Xpath expression with " | ", srenou | Thread | RE: [xsl] Xpath expression with " |, Michael Kay |
[xsl] Xpath expression with " | ", srenou | Date | Re: [xsl] data from XML, Jeni Tennison |
Month |