<?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>5650</bug_id>
          
          <creation_ts>2008-04-22 12:23:29 +0000</creation_ts>
          <short_desc>xsl:function/(@required | @tunnel)</short_desc>
          <delta_ts>2008-04-25 10:12:35 +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>Recommendation</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>INVALID</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="Frans Englich">frans.englich</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>19898</commentid>
    <comment_count>0</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2008-04-22 12:23:29 +0000</bug_when>
    <thetext>Whether the attributes &quot;required&quot; and &quot;tunnel&quot; are disallowed on xsl:function, and what do if present, I find a bit vague:

* Tunnels are from my understanding not in anyway related to xsl:functions. But I don&apos;t find anything, not in &quot;9.2 Parameters&quot; or &quot;10.3 Stylesheet Functions&quot;, that state xsl:function/xsl:param/@tunnel is disallowed or what error code to raise.

* 9.2 Parameters states: &quot;The optional required attribute may be used to indicate that a parameter is mandatory. This attribute may be specified for stylesheet parameters and for template parameters; it must not be specified for function parameters, which are always mandatory.&quot; but it isn&apos;t stated what error code to raise. This can be contrasted with for instance XTSE0760.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19900</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-04-22 12:44:02 +0000</bug_when>
    <thetext>Personal response.

&gt;I don&apos;t find anything, not in &quot;9.2 Parameters&quot; or &quot;10.3 Stylesheet Functions&quot;, that state xsl:function/xsl:param/@tunnel is disallowed or what error code to raise.

The last para of 9.2 states: &quot;The optional tunnel attribute may be used to indicate that a parameter is a tunnel parameter. The default is no; the value yes may be specified only for template parameters.&quot; This implies that the value tunnel=&quot;no&quot; is legal for a function parameter. If tunnel=&quot;yes&quot; is specified, I would suggest raising XTSE0020: &quot;an attribute ... contains a value that is not one of the permitted values for that attribute.&quot;

&gt;&quot;The optional required attribute may be used to indicate that a parameter is mandatory. This attribute ... must not be specified for function parameters, which are always mandatory.&quot; but it isn&apos;t stated what error code to raise.

I would suggest XTSE0010: &quot;the content of [an] element does not correspond to the content that is allowed for the element.&quot;

I don&apos;t dispute that it seems inconsistent to allow tunnel=&quot;no&quot; while not allowing required=&quot;yes&quot;, nor that we are inconsistent about when we define specific error messages for a condition and when we fall back to general purpose error codes. But I don&apos;t think such inconsistencies can be classed as bugs in the spec. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19943</commentid>
    <comment_count>2</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2008-04-25 10:12:20 +0000</bug_when>
    <thetext>Sounds sensible.

This is too insignificant. I&apos;m rejecting.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>