xsl-list
[Top] [All Lists]

Re: Xpath expression with " | "

2004-08-05 01:36:12
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/



<Prev in Thread] Current Thread [Next in Thread>