XTSE0370 error that makes no sense
Added by Anonymous over 16 years ago
Legacy ID: #5163696 Legacy Poster: Litrik De Roy (litrik)
When I try to use the following XSLT: ---- test.xsl -------- <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:template match="/data"> <report remove-me-to-make-it-work="{field[1]}" b="{field[1]}" c="{field[1]}" d="{field[1]}" e="{field[1]}" f="{field[1]}" h="{ceiling(sum(field[1]))}" j="{field[1]}" /> </xsl:template> </xsl:stylesheet> ------------ I get the following error: ---- error -------- Error at report on line 16 column 5 of test.xsl: XTSE0370: Closing curly brace in attribute value template "{field[1]}um(field[1]))}" must be doubled Failed to compile stylesheet. 1 error detected. ------------ Note that the attribute value template mentioned in the error does not occur in the XSLT file. If you remove the line with "remove-me-to-make-it-work", the XSLT will produce output. There seems to be a problem with some string offsets. Environment: Saxon 9.1.0.1J from Saxonica java version "1.6.0_06" Java(TM) SE Runtime Environment (build 1.6.0_06-b02) Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode) Command line: java -jar saxon9.jar in.xml test.xsl ---- in.xml -------- <?xml version="1.0" encoding="UTF-8"?> <data> <field>1</field> <field>2</field> <field>3</field> </data> ------------
Replies (1)
RE: XTSE0370 error that makes no sense - Added by Anonymous over 16 years ago
Legacy ID: #5163891 Legacy Poster: Michael Kay (mhkay)
This is a known bug in the version of Xerces that is bundled with JDK 1.6.0. Please use a Xerces release from apache.org instead. Michael Kay Saxonica
Please register to reply