Project

Profile

Help

Bug #2957

<xsl:variable> as attribute causes XTTE0570: The implicit value () is not valid for the declared type error

Added by Kerri Harris almost 4 years ago. Updated over 2 years ago.

Status:
Won't fix
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
2016-09-23
Due date:
% Done:

0%

Estimated time:

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.

variableas.zip (2.33 KB) variableas.zip Kerri Harris, 2016-09-23 19:56
WSH_SHIPME_ADVICE_TO_OTM_01.00.0000.iar (70.1 KB) WSH_SHIPME_ADVICE_TO_OTM_01.00.0000.iar Kerri Harris, 2016-09-26 17:52

History

#1 Updated by Michael Kay almost 4 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.

#2 Updated by Kerri Harris almost 4 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.

#3 Updated by Michael Kay over 2 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

Also available in: Atom PDF