[Home] [By Thread] [By Date] [Recent Entries]
Using the XQSharp 2.0 beta I tried
<xsl:output method="xml" version="1.1"/> <xsl:template name="main">
<test>
<xsl:value-of select="codepoints-to-string(1)"/>
</test>
</xsl:template></xsl:stylesheet> and the command line xslt.exe -it main --xml11 sheet.xsl results in error "FOCH0001: Code point '1' is not a legal XML character in call to built-in function 'codepoints-to-string'." When I instruct Saxon 9.2.1.2 to run that stylesheet with XML version 1.1 it allows the call and outputs <?xml version="1.1" encoding="UTF-8"?><test></test> The codepoints-to-string specification only says "If any of the code points in $arg is not a legal XML character, an error is raised [err:FOCH0001]" it does not mention whether the definition of "legal XML character" is XML version dependent. What do you think, if the XSLT processor supports XML version 1.1 and allows you to set it to use that version, should codepoints-to-string(1) work? -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|

Cart



