Actions
Bug #4378
closedanalyze-string() in saxon:threads fails
Start date:
2019-11-10
Due date:
% Done:
0%
Estimated time:
Legacy ID:
Applies to branch:
9.9, trunk
Fix Committed on Branch:
9.9, trunk
Fixed in Maintenance Release:
Platforms:
Description
Saxon-EE 9.9.1.5
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet exclude-result-prefixes="#all" version="3.0" xmlns:saxon="http://saxon.sf.net/"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param as="xs:integer" name="threads" select="10" />
<xsl:import-schema>
<xs:schema />
</xsl:import-schema>
<xsl:template name="xsl:initial-template">
<xsl:for-each saxon:threads="{$threads}" select="1 to 10">
<xsl:sequence select="analyze-string(string(), '.')" />
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
C:\test>java -jar saxon9ee.jar -it -xsl:analyze-string.xsl
Error on line 0
Duplicate type {finiteNumberType} - previously defined in imported component
...
Error evaluating (fn:analyze-string(...)) in xsl:sequence/@select on line 13 column 59 of analyze-string.xsl:
net.sf.saxon.type.SchemaException: Duplicated components found in schema
at template xsl:initial-template on line 11 of analyze-string.xsl:
invoked by unknown caller (null)
at template xsl:initial-template on line 11 of analyze-string.xsl:
invoked by unknown caller (null)
at template xsl:initial-template on line 11 of analyze-string.xsl:
invoked by unknown caller (null)
net.sf.saxon.trans.XPathException: net.sf.saxon.type.SchemaException: Duplicated components found in schema
Fine with saxon:threads=1
C:\test>java -jar saxon9ee.jar -it -xsl:analyze-string.xsl threads=1
<?xml version="1.0" encoding="UTF-8"?><analyze-string-result xmlns="http://www.w3.org/2005/xpath-functions"><match>1</match>...
Updated by Michael Kay over 4 years ago
- Category set to Multithreading
- Status changed from New to Resolved
- Assignee set to Michael Kay
- Priority changed from Low to Normal
- Applies to branch trunk added
- Fix Committed on Branch 9.9, trunk added
Thanks for reporting it. Reproduced and fixed. Ad-hoc testing only, no permanent test created.
Updated by O'Neil Delpratt over 4 years ago
- Status changed from Resolved to Closed
- Fixed in Maintenance Release 9.9.1.6 added
Patch committed to the Saxon 9.9.1.6 maintenance release.
Please register to edit this issue
Actions