tests/attr/validation/validation-1602.xsl
author Michael Kay <mike@saxonica.com>
Thu, 21 Dec 2017 11:02:56 +0000
changeset 1793 6e5f48b3d36d
permissions -rw-r--r--
New test cases for bug 30211 (default-validation)
1793
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     3
  xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.0" default-validation="preserve"
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     4
  xmlns:v16="http://ns.example.com/val16/">
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     5
  
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     6
  <!-- test to establish whether the implicit result document is validated. Bug 30211 -->
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     7
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     8
  <xsl:import-schema namespace="http://ns.example.com/val16/" schema-location="validation-16.xsd"/>
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     9
 
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    10
  <xsl:template match="/">
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    11
    <xsl:document validation="strict">
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    12
      <v16:doc xsl:validation="strict">
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    13
        <xsl:for-each select="1 to 10">
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    14
          <v16:test id="Z{position() mod 5}"/>
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    15
        </xsl:for-each>
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    16
      </v16:doc>
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    17
    </xsl:document>
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    18
  </xsl:template>
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    19
6e5f48b3d36d New test cases for bug 30211 (default-validation)
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    20
</xsl:stylesheet>