Re: Re: xpath based on condition
Dimitre Novatchev wrote: > Use: > > <xsl:variable name="xpath" > select="//Header[$Path]/*[name()=$Path] > | > //Header[not($Path)]"/> > > Because the conditions in the two predicates negate each other, only > one of the operands of the above union will actually be selected. Even better. Aruniima, please do not post the same message 3 times with different subject lines each time. Once is enough. - Mike ____________________________________________________________________________ mike j. brown | xml/xslt: http://skew.org/xml/ denver/boulder, colorado, usa | resume: http://skew.org/~mike/resume/ 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