<?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>2718</bug_id>
          
          <creation_ts>2006-01-15 19:30:06 +0000</creation_ts>
          <short_desc>Non-capturing sub-expressions</short_desc>
          <delta_ts>2006-11-16 18:52: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>Functions and Operators 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>INVALID</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="Ashok Malhotra">ashok.malhotra</reporter>
          <assigned_to name="Ashok Malhotra">ashok.malhotra</assigned_to>
          <cc>bjoern</cc>
          
          <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>7849</commentid>
    <comment_count>0</comment_count>
    <who name="Ashok Malhotra">ashok.malhotra</who>
    <bug_when>2006-01-15 19:30:06 +0000</bug_when>
    <thetext>http://www.w3.org/TR/2005/CR-xpath-functions-20051103/ extends the semantics
of the regular expressions defined in XML Schema 1.0 to allow for capture
buffers; I would like to re-use regular expressions as de- fined in the
candidate recommendation in a DTLL-like format, but an imporant requirement is
automatic assignment of names for the captured substrings based on the index
number of the parenthesized sub-expression as defined in the technical report.

This is not feasible however with the current syntax as it does not allow
non-capturing sub-expressions, so I would have to further extend the format
which makes sharing of regular expressions and regex engines difficult. In fact,
in order to re-use regular expressions as found on many web sites and programs,
and as produced by many tools, one would first have to re-write them to fit into
this model.

I thus think the regular expression syntax should further be extended to allow
for non-capturing sub-expressions using a syntax like (?:...) as is available in
most other regular expression formats.

regards,
--
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de Weinh.
Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7888</commentid>
    <comment_count>1</comment_count>
    <who name="Ashok Malhotra">ashok.malhotra</who>
    <bug_when>2006-01-20 16:20:57 +0000</bug_when>
    <thetext>Created in wrong bucket.  Closing here and opening in CR comments.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>