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]

Xpath predicates question


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


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