<?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>1289</bug_id>
          
          <creation_ts>2005-05-03 11:18:19 +0000</creation_ts>
          <short_desc>String variables in the stylesheet</short_desc>
          <delta_ts>2005-05-11 09:41:16 +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>XQueryX 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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Carlisle">davidc</reporter>
          <assigned_to name="Jim Melton">jim.melton</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>3591</commentid>
    <comment_count>0</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2005-05-03 11:18:19 +0000</bug_when>
    <thetext>The stylesheet has lots of variables initialised using the (equivalent) forms
  &lt;xsl:variable name=&quot;DOT&quot;&gt;.&lt;/xsl:variable&gt;
  &lt;xsl:variable name=&quot;SLASH&quot;&gt;&lt;xsl:text&gt;/&lt;/xsl:text&gt;&lt;/xsl:variable&gt;

It&apos;s something of a FAQ over on xsl-list that this is rather inefficient
as it makes a result tree fragment (or document node in XSLT2) that is more
expensive than a string to build, and has to be repeadedly coerced to a string
when used. Efficiency isn&apos;t really the main concern here, but as a stylesheet
appearing in a rec-track document it might be used as an example code
and also, as the only normative definition of xqueryx it may be reasonably
expected to be used in running XqueryX implementations as a first pass
converting XqueryX input to Xquery. If the stylesheet were converted to XSLT2
this would become more of a problem, as XSLT2 is rather less inclined to
automatically coerce between different types.

  &lt;xsl:variable name=&quot;DOT&quot; select=&quot;&apos;.&apos;&quot;/&gt;
  &lt;xsl:variable name=&quot;SLASH&quot; select=&quot;&apos;/&apos;&quot;/&gt;

would declare these things as strings.

There are also one or two variables that are &quot;dead code&quot; for constructs that are
no longer used. For similar reasons these ought to be dropped, eg

  &lt;xsl:variable name=&quot;CDATA_BEGIN&quot;&gt;

David</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3452</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2005-05-11 00:39:58 +0000</bug_when>
    <thetext>Your comment identifies items for which the specification is not erroneous, but
for which best practices would indicate specifying the items differently.  We
will attempt to make the changes you&apos;ve indicated and implied, but will not make
them if the disruptions to the document become too great. 

Please let us know if you agree with this resolution of your issue, by adding a
comment to the issue record and changing the Status of the issue to Closed. Or,
if you do not agree with this resolution, please add a comment explaining why.
If you wish to appeal the WG&apos;s decision to the Director, then also change the
Status of the record to Reopened. If you wish to record your dissent, but do not
wish to appeal the decision to the Director, then change the Status of the
record to Closed. If we do not hear from you in the next two weeks, we will
assume you agree with the WG decision.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3378</commentid>
    <comment_count>2</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2005-05-11 09:41:16 +0000</bug_when>
    <thetext>I&apos;m happy to leave fixing (or not) these to the editor&apos;s discretion and am
closing the report as requested.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>