This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Xpath predicates question
- From: Amanda Birmingham <lists at imladris dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 16 Aug 2002 17:53:44 -0600
- Subject: [xsl] Xpath predicates question
- Reply-to: xsl-list at lists dot mulberrytech dot com
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