<?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>4906</bug_id>
          
          <creation_ts>2007-08-01 21:19:27 +0000</creation_ts>
          <short_desc>In 3.4, don&apos;t write deref() function into the BNF</short_desc>
          <delta_ts>2007-10-17 20:28:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>SML</product>
          <component>Core</component>
          <version>unspecified</version>
          <rep_platform>Macintosh</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="C. M. Sperberg-McQueen">cmsmcq</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          
          
          <qa_contact name="SML Working Group discussion list">public-sml</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>16004</commentid>
    <comment_count>0</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2007-08-01 21:19:27 +0000</bug_when>
    <thetext>In section 3.4, the SML spec specifies that the XPath
expression in the sml:selector attribute must match a
grammar given in BNF form.  The grammar provides that 
the SML &apos;deref&apos; function may be called in the XPath
expression, by including a production for a non-terminal
called DerefExpr.

It would probably be simpler (requiring less grammar, or
none) just to allow a normal XPath function call and
specify that the sml:deref function must be available in
the library of functions known to the XPath interpreter.
So I propose that the spec be changed to say that, instead
of conveying that fact through the grammar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16019</commentid>
    <comment_count>1</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2007-08-02 03:40:10 +0000</bug_when>
    <thetext>The XML id constraint selector uses a restricted subset of XPath. It does not allow any fn call. SML extends this to allow call to only the deref() fn. This is why we have the explicitly defined production DerefExpr.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16020</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2007-08-02 03:52:47 +0000</bug_when>
    <thetext>I think the desired effect can be formulated by saying that when
the XPath expression in the id constraint selector is evaluated,
the &apos;function implementations&apos; property of the dynamic context
is empty except for the SML &apos;deref&apos; function.

This has the advantage that we do not need to write BNF to try
to handle the complexities of QName prefixes.  It makes it
easier to modify or adjust the set of available functions in 
future; that may or may not be an advantage.  
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16626</commentid>
    <comment_count>3</comment_count>
    <who name="Pratul Dublish">pratul.dublish</who>
    <bug_when>2007-09-17 15:50:02 +0000</bug_when>
    <thetext>I think that the BNF in the spec is more useful since it clarifies that we allow deref functions to be nested. I recommend that we resolve this bug as WONTFIX </thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>