This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]