<?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>1660</bug_id>
          
          <creation_ts>2005-07-16 07:19:15 +0000</creation_ts>
          <short_desc>[FS] editorial: 4.7.3.2 Computed Attribute Constructors</short_desc>
          <delta_ts>2007-09-19 07:41:54 +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>Formal Semantics 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Dyck">jmdyck</reporter>
          <assigned_to name="Jerome Simeon">simeon</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>4744</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-16 07:19:15 +0000</bug_when>
    <thetext>4.7.3.2 Computed Attribute Constructors

Norm / rule (2|3)
&quot;fs:item-sequence-to-untypedAtomic( ... )&quot;
    This function takes a single argument (of type item*), but
    [[ Expr ]]_Expr could result in a sequence of comma-separated
    ExprSingles, which would then constitute multiple args.
    Put [[ Expr ]]_Expr in parentheses to ensure a single arg.

DEv / rule (1|2)
&quot;fs:item-sequence-to-untypedAtomic(Expr)&quot;
    Similar to previous.
    Put &quot;Expr&quot; in parentheses to ensure a single arg.

DEv / rule (1|2)
dynEnv |- fs:item-sequence-to-untypedAtomic(Expr) =&gt; Value
    The AttributeValue in the conclusion wants a SimpleValue, for which
    Value is too general.  But we know that item-sequence-to-untypedAtomic
    will return an atomic value, so rename &quot;Value&quot; as &quot;AtomicValue&quot;
    (which satisfies the need for a SimpleValue).

DEv / rule 1 / conclusion
attribute expanded-QName of type xdt:untypedAtomic { Value }
    The EBNF for AttributeValue says that the thing after the &quot;attribute&quot;
    keyword is an AttributeName (i.e., QName), not an expanded-QName.
(leftover from last year, comment #077)

DEv / rule 2
&quot;statEnv |- QName1 = xs:QName(Value1)&quot;
    The xs:QName constructor function returns a value from the value space
    of xs:QName, which in the Formal Value syntax is denoted by
    &apos;expanded-QName&apos;, so change &quot;QName1&quot; to &quot;expanded-QName&quot;.

    This then also runs afoul of the AttributeValue EBNF. So perhaps
    the EBNF should be changed, from &quot;QName&quot; to &quot;expanded-QName&quot;.

DEv / rule 2 / premise 3
&quot;statEnv |- QName1 = xs:QName(Value1)&quot;
    You don&apos;t need a static environment for such a judgment.

DErr / para 1
&quot;not a xs:QName. the xmlns namespace.&quot;
    Delete &quot;the xmlns namespace.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9268</commentid>
    <comment_count>1</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-04-16 23:35:01 +0000</bug_when>
    <thetext>Fixed as suggested. Replaced QName1 = xs:QName(Value1) by the syntactic construction of an QName using the fn:prefix-from-QName and fn:localname-from-QName functions. This is used similarly in the refactoring of the dynamic rules in 4.7.3.1 Computed Element Constructors.
- Jerome
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9551</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2006-05-01 23:09:57 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Replaced QName1 = xs:QName(Value1) by the syntactic construction
&gt; of an QName using the fn:prefix-from-QName and fn:localname-from-QName
&gt; functions. This is used similarly in the refactoring of the
&gt; dynamic rules in 4.7.3.1 Computed Element Constructors.

I think this approach might be a mistake. I&apos;m inclined to think that in an AttributeValue or ElementValue, the name should be an expanded-QName, not a QName. Using QName assumes a) that its prefix is bound to the appropriate namespace name in the in-scope namespaces; and b) that that same binding exists everywhere in the inference process that the QName needs to be expanded. I don&apos;t think either assumption is true.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12250</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2006-10-03 05:53:39 +0000</bug_when>
    <thetext>In the 2006-06 CR, this is not fixed:
&gt; 
&gt; DEv / rule (1|2)
&gt; &quot;fs:item-sequence-to-untypedAtomic(Expr)&quot;
&gt;     Similar to previous.
&gt;     Put &quot;Expr&quot; in parentheses to ensure a single arg.

Also, there&apos;s been no response to Comment #2.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12610</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2006-10-26 02:23:22 +0000</bug_when>
    <thetext>Re the issue I raised in Comment #2, I&apos;ve split it off (and generalized it) into Bug 3863.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16678</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2007-09-19 01:23:48 +0000</bug_when>
    <thetext>The unresolved portion of this issue (i.e., the first part of Comment #3) has been entered as FS erratum E005.

A fix has been committed to the source files for the next edition of the FS
document. Consequently, I&apos;m marking this issue resolved-FIXED, and CLOSED.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>