Evaluate dynamic string as an XPath expression?
Currently, I'm writing something to do Unit testing for XSLT2 functions, the idea is very simple: Create a custom-library.xsl , which contains some custom XSLT2 functions. Create a data XML contains the test cases, as following XML Schema xslunit.xsd : schema structure http://xml.bodz.net/schema/xslunit/xslunit.png Run the test cases by transform it, using xslunit-xslt2.xsl , and get the test result html. Now, the question is, there is function-call in the test cases, and I have to evaluate it in the XSLT (file xslunit-xslt2.xsl ). But I can't find a way to evaluate an XPath. Though, it may be