<?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>1659</bug_id>
          
          <creation_ts>2005-07-16 06:33:01 +0000</creation_ts>
          <short_desc>[FS] editorial: 4.7.3.1 Computed Element Constructors</short_desc>
          <delta_ts>2007-01-16 17:32:14 +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>4743</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-16 06:33:01 +0000</bug_when>
    <thetext>4.7.3.1 Computed Element Constructors

Notation
&quot;Local namespace declarations ...&quot;
    This para is a leftover from the previous Last Call draft, and doesn&apos;t
    make much sense now.

Normalization

&quot;Computed element constructors using the fs:item-sequence-to-node-sequence
function over their content expression.&quot;
    This isn&apos;t a sentence.  s/using/use/ ?

Norm / rule (2|3)
&quot;fs:item-sequence-to-node-sequence( [[ Expr ]]_Expr )&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.

STA

&quot;The static semantic&quot;
    s/semantic/semantics/

&quot;element QName { Expr }&quot;
    These rules must be modified to handle a CompElemConstructor that
    (somehow) contains NamespaceBindings.

DEv

&quot;Third, The namespace bindings&quot;
    s/The/the/

DEv / rule (1|2)
&quot;CompElemNamespace&quot;
    Change to &quot;NamespaceBinding&quot;.

DEv / rule 1 / premise 1
Expr = CompElemNamespace1, ..., CompElemNamespacen, (Expr0)
DEv / rule 2 / premise 3
Expr2 = CompElemNamespace1, ..., CompElemNamespacen, (Expr3)
    The parentheses around the final Expr are odd.

DEv / rule 2 / premise 10
&quot;statEnvm, dynEnv&quot;
    Change the comma to a semicolon.

DEv / rule 1 / premise 10
DEv / rule 2 / premise 12
&quot;fs:active_ns(statEnv.namespace)&quot;
    This invocation is inconsistent with the &quot;declaration&quot; in 3.1.1,
    which indicates that it should be invoked as fs:active_ns(statEnv).

DEv / rules (1|2)
    These rules don&apos;t actually construct an element value!
    Their conclusions should be something like:
    ... =&gt; element QName of type something {Value} {NamespaceBindings}

DEv / rule (1|2)
    These rules are almost identical. Refactor.
    Rule 2 could be reduced to a few premises plus an invocaton of rule 1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9267</commentid>
    <comment_count>1</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-04-16 23:28:14 +0000</bug_when>
    <thetext>Fixed as suggested. Main changes are: addition of a new judgment that handles NamespaceBindings for the static typing part of the semantics, refactoring of rules 1/2 in the dynamic evaluation part of the semantics.
- Jerome</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>