Dynamically generate XPath expression using XML data

Posted by iHeartGreek on Stack Overflow See other posts from Stack Overflow or by iHeartGreek
Published on 2010-05-21T20:26:57Z Indexed on 2010/05/21 20:30 UTC
Read the original article Hit count: 415

Filed under:
|
|
|
|

Hi!

I would like to dynamically create XPath expressions in an XSL determined by data in an XML file. (i.e. the XML data is "concatenated" to create an XPath expression).

Example of XML data:

AAA BBB CCC

Example of how I would like the XPath expression to look like: //AAA | //BBB | //CCC

And this dynamic generation needs to be done in an XSL file.

I am fairly new to XSL (and family) and would appreciate some general direction on how to tackle this problem.

Thanks!

© Stack Overflow or respective owner

Related posts about xslt

Related posts about xpath