<?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>5840</bug_id>
          
          <creation_ts>2008-07-08 07:47:19 +0000</creation_ts>
          <short_desc>[XSLT 2.1] Enhancements to pattern syntax</short_desc>
          <delta_ts>2014-05-15 14:00:19 +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>XSLT 3.0</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>5464</dup_id>
          
          <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="Michael Kay">mike</reporter>
          <assigned_to name="Michael Kay">mike</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>21088</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-07-08 07:47:19 +0000</bug_when>
    <thetext>(Captured en-passant during a WG telcon)

There are a number of restrictions on patterns that don&apos;t really have any good justification. This was an area we left largely untouched in 2.0 except where we automatically inherited changes being made to XPath expressions.

Constructs that would often be useful in patterns include:

* parentheses:  (//title)[1]

* union in a step:  (chapter|appendix)/title

* anchoring the pattern to a specific document:

       $lookup-doc//entry
       doc(&apos;lookup.xml&apos;)//entry

* matching any node that is a member of a preselected node-set 

       $preselection

* use of &quot;.&quot; with a predicate:

       .[f:is-special(.)]

All of these can currently be expressed, but often rather inelegantly; the 4th case above, for example, is match=&quot;node()[. intersect $preselection]&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22049</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-09-26 13:22:07 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 5464 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>