Try a different prefix for the XML Schema namespace (Saxon bug in export files)
authorMichael Kay <mike@saxonica.com>
Thu, 21 Dec 2017 11:04:17 +0000
changeset 1794 6fb185c865e9
parent 1793 6e5f48b3d36d
child 1795 d3cc4216c2af
Try a different prefix for the XML Schema namespace (Saxon bug in export files)
tests/attr/as/as-0116.xsl
--- a/tests/attr/as/as-0116.xsl	Thu Dec 21 11:02:56 2017 +0000
+++ b/tests/attr/as/as-0116.xsl	Thu Dec 21 11:04:17 2017 +0000
@@ -1,16 +1,16 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<xslt:transform xmlns:xs="http://www.w3.org/2001/XMLSchema"
-   xmlns:xslt="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="xs" version="2.0">
+<xslt:transform xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+   xmlns:xslt="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="xsd" version="2.0">
    <!-- Purpose: Test type of global xsl:variable where @select contains an xs:anyURI, @as="xs:string".(type promotion)  -->
 
    <xslt:output method="xml" encoding="UTF-8"/>
 
-   <xslt:variable name="v" select="xs:anyURI('http://www.w3.org/2001/XMLSchema')" as="xs:string"/>
+   <xslt:variable name="v" select="xsd:anyURI('http://www.w3.org/2001/XMLSchema')" as="xsd:string"/>
 
    <xslt:template match="/doc">
       <out>
-         <xslt:value-of select="$v instance of xs:anyURI"/>
-         <xslt:value-of select="$v instance of xs:string"/>
+         <xslt:value-of select="$v instance of xsd:anyURI"/>
+         <xslt:value-of select="$v instance of xsd:string"/>
       </out>
    </xslt:template>
 </xslt:transform>