[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Evaluate string as XPATH axis in XSLT1.0?
Matt Poff wrote: Hi > [Two] > <xsl:variable name="testmap" select="dyn:evaluate('./foo[@type = > 'bar']')"/> > Result: Error = "expected ")", found "<name>" You should be able to use './foo[@type = "bar"]'. Your solution with concat() is another way. If you are using dyn:evaluate(), then you dynamically build the expression anyway. > It seems like dyn:evaluate isn't handling embedded apostrophes dyn:evaluate() handles apostrophes or whatever exactly the same way as within any XPath expression. If the result of the two following expressions, evaluated in the same context, is different, then there is a bug into your XSLT processor: <xsl:value-of select=" ./foo[@type = "bar"]"/> <xsl:value-of select=" dyn:evaluate('./foo[@type = "bar"]')"/> Regards, --drkm _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|