<?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>24540</bug_id>
          
          <creation_ts>2014-02-05 22:55:10 +0000</creation_ts>
          <short_desc>Definition for predicate pattern and path patterns</short_desc>
          <delta_ts>2014-02-24 12:52:47 +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>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>cmsmcq</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>99844</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-02-05 22:55:10 +0000</bug_when>
    <thetext>The introduction of predicate patterns is quite a major one, I think it is worthwhile to use a specific definition for this term. Same applies to its counterpart, path patterns.

I know we don&apos;t want to define every single term we use, but this one is quite important for understanding patterns.

In addition, I thought we once said that .[1] (or any numeric in a predicate pattern) is always true and .[0] is always false, but I couldn&apos;t find it, did that decision make it to the spec?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100382</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2014-02-12 10:20:50 +0000</bug_when>
    <thetext>The WG discussed this during the ftf meeting in Prague and concluded that the issue should be left to the discretion of the editor.  There was some support for the view that definitions of &apos;predicate pattern&apos; and &apos;path pattern&apos; as terms would be helpful, even though (as was pointed out) they do not partition the set of all patterns between them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101232</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-02-24 12:51:24 +0000</bug_when>
    <thetext>I have introduced &quot;predicate pattern&quot; and &quot;selection pattern&quot; as defined terms for the two kinds of pattern; these now partition the space.

Concerning the last para of the bug report, the note in 5.6.3 has this information: &quot;A predicate with the numeric value 1 (one) always matches, and a predicate with any other numeric value never matches. Numeric predicates in a PredicatePattern are therefore not useful, but are defined this way in the interests of consistency with XPath.&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>