Bug #2957
closed<xsl:variable> as attribute causes XTTE0570: The implicit value () is not valid for the declared type error
0%
Description
When using an XSLT2.0 xsl file that is using a xsl:variable with an as attribute like such:
<xsl:variable name="outerpacking" as="xsd:string" select="nsmpr1:LicensePlateNumber"/>
.
And the Saxon.newXSLT20Processor(xsl) and transformToDocument(xml) APIs we get the following error:
XTTE0570: The implicit value () is not valid for the declared type error
.
Saxon-CE should be able to handle the new XSLT 2.0 "as" attribute for xsl:variable.
Files
Updated by Michael Kay about 8 years ago
I'm not convinced you have sent us the code that is causing the problem, because this error message can only occur for an xsl:variable with no select attribute.
Please be aware that we won't be developing or maintaining Saxon-CE much longer; it's effectively superseded by Saxon-JS which is now on beta release.
Updated by Kerri Harris about 8 years ago
Perhaps its something else...it seems to be that, as when I comment out the 3 lines of code that are using the "as" attribute (all do have selects). I receive the Saxon error.
.
I've attached an iar file (it's a zip file). Unzip it and try to access the following file:
icspackage/project/WSH_SHIPME_ADVICE_TO_OTM_01.00.0000/resources/processor_88/resourcegroup_425/req_5c63375ad1834b7788663af6dbec1908.xsl
.
Here are the errors that we see from Saxon:
19969A4E1BAF2CE01CE393669CA7071E.cache.html:875 SaxonCE.StandardErrorListener 09:53:32.263
SEVERE: Error at /xsl:stylesheet/xsl:template[2]/xsl:variable[1] in
XTTE0570: The implicit value () is not valid for the declared typeJR @ 19969A4E1BAF2CE01CE393669CA7071E.cache.html:875
19969A4E1BAF2CE01CE393669CA7071E.cache.html:875 SaxonCE.StandardErrorListener 09:53:32.268
SEVERE: Error at /xsl:stylesheet/xsl:template[2]/xsl:variable[3] in
XTTE0570: The implicit value () is not valid for the declared typeJR @ 19969A4E1BAF2CE01CE393669CA7071E.cache.html:875
19969A4E1BAF2CE01CE393669CA7071E.cache.html:875 SaxonCE.StandardErrorListener 09:53:32.270
SEVERE: Error at /xsl:stylesheet/xsl:template[2]/xsl:variable[4] in
XTTE0570: The implicit value () is not valid for the declared typeJR @ 19969A4E1BAF2CE01CE393669CA7071E.cache.html:875
19969A4E1BAF2CE01CE393669CA7071E.cache.html:875 SaxonCE.XSLT20Processor 09:53:32.278
SEVERE: XPathException in renderXML: Failed to compile stylesheet. 3 errors detected.
Updated by Michael Kay almost 7 years ago
- Status changed from New to Won't fix
Closing remaining Saxon-CE issues as "won't fix" since the product is now superseded by Saxon-JS and there is no plan to do any further maintenance.
Please register to edit this issue