<?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>1701</bug_id>
          
          <creation_ts>2005-07-17 23:13:23 +0000</creation_ts>
          <short_desc>[FS] what is [For/FLWR]?</short_desc>
          <delta_ts>2005-09-29 10:48:04 +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>PC</rep_platform>
          <op_sys>Windows 2000</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>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fred Zemke">fred.zemke</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>4787</commentid>
    <comment_count>0</comment_count>
    <who name="Fred Zemke">fred.zemke</who>
    <bug_when>2005-07-17 23:13:23 +0000</bug_when>
    <thetext>4.8 [For/FLWR] expressions
What is a &quot;[For/FLWR] expression&quot;?  Don&apos;t you mean FLWORExpr?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4912</commentid>
    <comment_count>1</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-07-19 18:02:06 +0000</bug_when>
    <thetext>The reason for the notation is that FLWOR expressions appear in XQuery, and For
expressions appear in XPath. The formal semantics serves as one formal semantics
specification for both languages, hence the [For/FLWR] notation.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4944</commentid>
    <comment_count>2</comment_count>
    <who name="Fred Zemke">fred.zemke</who>
    <bug_when>2005-07-19 23:12:48 +0000</bug_when>
    <thetext>Perhaps we could reword the first sentence of 4.8 as follows:
&quot;[XPath] provides ForExpr, and [XQuery] provides FLWORExpr, 
which will be collectively referred to as [For/FLWOR].  
[For/FLWR] expressions are used for iteration, ...&quot;.

Note that I propose to respell it [For/FLWOR] to align with [XQuery].</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5029</commentid>
    <comment_count>3</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-07-20 20:43:44 +0000</bug_when>
    <thetext>I agree we should make sure to respell [For/FLWR] to [For/FLWOR].

We should also explains what that mean. We can do it as you suggest, possibly we
could also indicate this right at the beginning in the preliminaries.

Any preference about how we do this?
- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5239</commentid>
    <comment_count>4</comment_count>
    <who name="Fred Zemke">fred.zemke</who>
    <bug_when>2005-07-26 22:49:26 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; I agree we should make sure to respell [For/FLWR] to [For/FLWOR].
&gt; 
&gt; We should also explains what that mean. We can do it as you suggest, possibly we
&gt; could also indicate this right at the beginning in the preliminaries.
&gt; 
&gt; Any preference about how we do this?

If you put it as a general statement in the preliminaries, then it would 
something like &quot;[x/y] refers to something that is called &apos;x&apos; in [XPath] 
and called &apos;y&apos; in [XQuery].&quot;  However, [expression/query] is not 
actually called &quot;expression&quot; in either specification; it is called Expr
in both, though I see XPath has XPath ::= Expr and XQuery has 
QueryBody ::= Expr.  Similarly [For/FLWOR] is not actually called For or
FLWOR.  So there is no syntactic transform from [x/y] to its referents.
This good be arranged, but it is probably simpler to just supply a 
definition whenever one of these symbols is introduced.

Fred</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6594</commentid>
    <comment_count>5</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-09-29 10:37:26 +0000</bug_when>
    <thetext>The [For/FLOWR] case has been fixed, but this particular comment does not touch
any formal notation. This is automatically generated text for shared
specifications (which FS is). [expression/query] for instance is intended in the
english sense, an &apos;expression&apos; or a &apos;query&apos;.

I don&apos;t think there is necessity to add formal description of that unformal
written form.

- Jerome</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>