The problem here is ' , you closing your string before xsl:version &
open a new one after.
It same as java code str = "some='"ddd"'" .
Possible solution is replace ' by '
--
Cheers,
Dmitriy Shabanov
On Mon, 2010-08-09 at 10:32 +0200, James Fuller wrote:
> 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 ?
|