<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>2466</bug_id>
          
          <creation_ts>2005-11-04 17:12:39 +0000</creation_ts>
          <short_desc>[XSLT] Validation of document nodes</short_desc>
          <delta_ts>2006-02-02 18:53:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XSLT 2.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>2465</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>7051</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-11-04 17:12:39 +0000</bug_when>
    <thetext>Section 19.2.2 says:

It is possible to apply validation to a document node. The circumstances
under which this happens are as follows:

    * A document is constructed using the xsl:document instruction, and the
validation or type attribute is specified explicitly or implicitly.
    * A result tree is constructed implicitly in the absence of the
xsl:result-document instruction, and the default-validation attribute of the
xsl:stylesheet element in the principal stylesheet module requests
validation.
    * A result tree is constructed using an xsl:result-document instruction,
and the validation or type attribute is specified explicitly or implicitly.
    * The xsl:copy instruction is used when the context item is a document
node, and the validation or type attribute is specified explicitly or
implicitly.
    * One or more of the items selected by the xsl:copy-of instruction is a
document node, and the validation or type attribute is specified explicitly
or implicitly.

I think the wording of this list dates from when we allowed
default-validation=&quot;strict&quot; or default-validation=&quot;lax&quot; to be specified on
the xsl:stylesheet element. This attribute now allows only the values
preserve and strip, which (as mentioned a couple of paragraphs later) do not
request validation.

I think the bullets should read:

    * A document is constructed using the xsl:document instruction, and the
validation or type attribute is specified.
    * A result tree is constructed using an xsl:result-document instruction,
and the validation or type attribute is specified.
    * The xsl:copy instruction is used when the context item is a document
node, and the validation or type attribute is specified.
    * One or more of the items selected by the xsl:copy-of instruction is a
document node, and the validation or type attribute is specified.

Or more concisely:

&quot;It is possible to apply validation to a document node. This happens when a
new document node is constructed by one of the instructions xsl:document,
xsl:result-document, xsl:copy, or xsl:copy-of, and this instruction has a
type attribute or a validation attribute with the value strict or lax.&quot;

Previously raised at 
http://lists.w3.org/Archives/Member/w3c-xsl-wg/2005Oct/0043.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7055</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-11-04 17:22:19 +0000</bug_when>
    <thetext>Finger trouble - entered it twice somehow

*** This bug has been marked as a duplicate of 2465 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>