From: James F. <jam...@ex...> - 2010-08-09 08:32:33
|
the following code snippet illustrates another odd issue with eval within eXist util:eval(' let $style := <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <body> <p> Version: <xsl:value-of select="system-property('xsl:version')" /> <br /> Vendor: <xsl:value-of select="system-property('xsl:vendor')" /> <br /> Vendor URL: <xsl:value-of select="system-property('xsl:vendor-url')" /> </p> </body> </html> </xsl:template> </xsl:stylesheet> return transform:transform(<test/>, $style, ()) ') which throws the following error ' Cannot compile xquery: org.exist.xquery.XPathException: err:XPST0003 in line 1, column 199: unexpected token: xsl ' I think the problem is that static analysis is interpreting the system-property() string value as a QName. thoughts ? James Fuller |