[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] "Or" in XPATH expression at last step
Folks, I am having trouble producing what I think should be a simple Xpath expression. I want something like: <xsl:for-each select="/TOP/A[@type=2]/(C|D)"> but the xsl parser says it's illegal. Is there some variant on the expression above that will work? instead, I have been forced to use the following, which gets messy when E,F,G are added. <xsl:for-each select="/TOP/A[@type=2]/C|/TOP/A[@type=2]/D"> Sam XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|