[Home] [By Thread] [By Date] [Recent Entries]

Subject: Xpath predicates question
From: Amanda Birmingham <lists@xxxxxxxxxxxx>
Date: Fri, 16 Aug 2002 17:53:44 -0600
Hi, List,

I've got a question about using predicates in xpath ... I know you can select something like

/library/book[title = MobyDick]

but can you do something like

/library/book[title = <xsl:value-of select = "/personal_info/favorite_book" />]


I mean, can you use a value you got from somewhere else in the XML as part of the predicate expression? If not, can anyone suggest another means of achieving a similar result?


Thanks much,
Amanda Birmingham



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member