[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Re: xpath based on condition


Subject: Re: [xsl] Re: xpath based on condition
From: Mike Brown <mike@xxxxxxxx>
Date: Thu, 15 Aug 2002 01:02:42 -0600 (MDT)

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



Current Thread