Project

Profile

Help

Bug #4583

closed

Failed to compile "('0', 0)[1] ! xs:integer(.)"

Added by Michael Kay over 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2020-06-13
Due date:
% Done:

100%

Estimated time:
Applies to JS Branch:
2
Fix Committed on JS Branch:
2
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

Reported on saxon-help mailing list:

Saxon-JS 2.0.2 fails to compile this simple stylesheet which 10.1J can compile and execute.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet exclude-result-prefixes="#all" version="3.0"
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

   <xsl:template name="xsl:initial-template">
       <i>
           <xsl:value-of select="('0', 0)[1] ! xs:integer(.)" />
       </i>
   </xsl:template>
</xsl:stylesheet>

produces:

Compiling stylesheet /tmp/test.xsl
Failed to compile stylesheet: Cannot read property 'name' of undefined
(long backtrace snipped)

Please register to edit this issue

Also available in: Atom PDF Tracking page