Project

Profile

Help

Bug #4560

closed

Failure running fn:transform() from XQuery under Saxon-HE

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
XQuery conformance
Sprint/Milestone:
-
Start date:
2020-05-26
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
10
Fix Committed on Branch:
10
Fixed in Maintenance Release:
Platforms:

Description

Transferred from help forum, post #7895

When I run the XQuery code

transform(
  map {
    'initial-match-selection' : 
      transform(
          map {
            'source-location' : 'input1.xml',
            'stylesheet-location' : 'sheet1.xsl',
            'delivery-format' : 'raw'
          }
       )?output,
    'stylesheet-location' : 'sheet1.xsl'
  }
)?output

with some input XML and a not schema-aware stylesheet using Saxon-HE 10.1J with the command line java -cp saxon-he-10.1.jar net.sf.saxon.Query -t .\chain-two-xslts2.xq it succeeds while using Saxon-EE 10.1J with java -cp saxon-ee-10.1.jar net.sf.saxon.Query -t .\chain-two-xslts2.xq fails with an error "Cannot use a schema-validated source document unless the stylesheet is schema-aware".

Please register to edit this issue

Also available in: Atom PDF