This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Re: xpath based on condition
- From: Mike Brown <mike at skew dot org>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 15 Aug 2002 01:02:42 -0600 (MDT)
- Subject: Re: [xsl] Re: xpath based on condition
- Reply-to: xsl-list at lists dot mulberrytech dot com
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