<?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>3526</bug_id>
          
          <creation_ts>2006-07-23 20:58:32 +0000</creation_ts>
          <short_desc>May [xsl:validation] take an AVT?</short_desc>
          <delta_ts>2006-08-16 18:49:56 +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>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Colin Adams">colin</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>10651</commentid>
    <comment_count>0</comment_count>
    <who name="Colin Adams">colin</who>
    <bug_when>2006-07-23 20:58:32 +0000</bug_when>
    <thetext>I have always assumed it may not, but I cannot find proof of this in the spec. The error messages talk about the effective value of the attribute, which suggest that it might be possible to pass an AVT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10652</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-07-23 21:24:52 +0000</bug_when>
    <thetext>For instructions like xsl:element, the syntax proforma is normative: this has

 &lt;xsl:element
  name = { qname }
  namespace? = { uri-reference }
  inherit-namespaces? = &quot;yes&quot; | &quot;no&quot;
  use-attribute-sets? = qnames
  type? = qname
  validation? = &quot;strict&quot; | &quot;lax&quot; | &quot;preserve&quot; | &quot;strip&quot;&gt;
  &lt;!-- Content: sequence-constructor --&gt;
&lt;/xsl:element&gt;

Attributes that may be AVTs are shown in curly braces; therefore &quot;validation&quot; is not an AVT.

For literal result elements, we have to rely on the fact that 11.1.1 says that the allowed values of the attribute are defined in 19.2, and in 19.2 the possible values are enumerated in the text as strict|lax|preserve|strip. 

The use of the term &quot;effective value&quot; is perhaps injudicious. It&apos;s not hyperlinked to the definition of the term &quot;effective value&quot; as used in relation to AVTs, and is in fact intended as a reference to the statement &quot;If both attributes are omitted, the effect is the same as specifying the validation attribute with the value specified in the default-validation attribute of the containing xsl:stylesheet element; if this is not specified, the effect is the same as specifying validation=&apos;strip&apos;.&quot;

I think we could probably add clarity by stating explicitly in section 11.1.1 that the value of xsl:validation must be one of these four values and that AVTs are not allowed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10656</commentid>
    <comment_count>2</comment_count>
    <who name="Colin Adams">colin</who>
    <bug_when>2006-07-24 05:19:45 +0000</bug_when>
    <thetext>I would endorse your proposed addition to 11.1.1. I spent a lot of time last night double-checking that section, but couldn&apos;t find anything definite.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11182</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-08-16 18:49:44 +0000</bug_when>
    <thetext>I have added clarifying text to section 11.1.1 as proposed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>