@@ -25,34 +25,34 @@ module namespace testTransform="http://exist-db.org/xquery/test/function_transfo
2525
2626declare namespace test="http://exist-db.org/xquery/xqsuite" ;
2727
28- declare variable $testTransform:transform-71-xsl := document {
28+ declare variable $testTransform:transform-71-xsl := "
2929<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
30- xmlns:xs = 'http://www.w3.org/2001/XMLSchema'
31- xmlns:chrono = 'http://chronology.com/' version = '2.0' >
32- <xsl:import-schema>
33- <xs:schema targetNamespace = 'http://chronology.com/' >
34- <xs:simpleType name = 'c4' >
35- <xs:restriction base = 'xs:string' >
36- <xs:pattern value = '....' />
37- </xs:restriction>
38- </xs:simpleType>
39- </xs:schema>
40- </xsl:import-schema>
41- <xsl:template name = 'main' >
42- <out><xsl:value-of select = "chrono:c4('abcd')" /></out>
43- </xsl:template>
44- </xsl:stylesheet> } ;
30+ xmlns:xs='http://www.w3.org/2001/XMLSchema'
31+ xmlns:chrono='http://chronology.com/' version='2.0'>
32+ <xsl:import-schema>
33+ <xs:schema targetNamespace='http://chronology.com/'>
34+ <xs:simpleType name='c4'>
35+ <xs:restriction base='xs:string'>
36+ <xs:pattern value='....'/>
37+ </xs:restriction>
38+ </xs:simpleType>
39+ </xs:schema>
40+ </xsl:import-schema>
41+ <xsl:template name='main'>
42+ <out><xsl:value-of select="" chrono:c4('abcd')" " /></out>
43+ </xsl:template>
44+ </xsl:stylesheet>" ;
4545
4646declare
4747 %test:assertError("XTSE1650" )
4848function testTransform:transform-71 () {
4949 let $xsl := $testTransform:transform-71-xsl
50- let $result := fn:transform (map{
51- "stylesheet-node" : $xsl,
52- "source-node " : parse-xml ($xsl ),
53- "initial-template " : fn:QName ( '' , 'main' ) ,
54- "delivery-format " : "serialized" ,
55- "requested-properties" : map{ fn:QName ( 'http://www.w3.org/1999/XSL/Transform' , 'is-schema-aware' ): false ()}
56- })
57- return $result("output" )
50+ let $result := fn:transform (map {
51+ "stylesheet-text" : $xsl,
52+ "initial-template " : fn:QName ( '' , 'main' ),
53+ "delivery-format " : "serialized" ,
54+ "requested-properties " : map{ fn:QName ( 'http://www.w3.org/1999/XSL/Transform' , 'is-schema-aware' ): false () }
55+ })
56+ return
57+ $result("output" )
5858};
0 commit comments