Project

Profile

Help

calling fn:transform on result of fn:transform works in Saxon HE but in EE gives error "Cannot use a schema-validated source document unless the stylesheet is schema-aware"

Added by Martin Honnen almost 4 years ago

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".

Do I need to change my map arguments to the fn:transform function to make this work in Saxon EE? Or call it differently from the command line?

I am not sure why I get the error and how to prevent it.


    (1-1/1)

    Please register to reply