OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: need clarifications on XPath vs pattern match

[ Lists Home | Date Index | Thread Index ]
  • From: "Didier PH Martin" <martind@netfolder.com>
  • To: "Michael Fuller" <msf@mds.rmit.edu.au>
  • Date: Mon, 13 Dec 1999 19:39:35 -0500

Hi Michael,

Michael said:
Not quite. See XSLT, section 5.2:
    "A pattern must match the grammar for Pattern. A Pattern is a set of
    location path patterns separated by |. A location path pattern is a
    location path whose steps all use only the child or attribute axes.
    Although patterns must not use the descendant-or-self axis, patterns
    may use the // operator as well as the / operator. Location path
    patterns can also start with an id or key function call with a literal
    argument.  Predicates in a pattern can use arbitrary expressions just
    like predicates in a location path."

This paragraph is followed by a grammar spelling out the above.
See also XPath, section 2 "Location Paths".

Didier reply:
so, basically a pattern match could be a collection of XPath location path
Can we say that?

Michael said:
"Node-sets" are defined in XPath, section 3.3:
    "A location path can be used as an expression. The expression returns
    the set of nodes selected by the path."

Didier says:
I expected a better definition. don't you? Obviously the name node-set
convey implicitly the meanings of node and set. A set being a collection,
then we can say that a node-set is a collection of nodes. However, I
expected something more formal for something which is as fundamental. Again,
David, have we, or will we have a more formal definition of node-set in
information sets?

Michael said:
Bottom line: you can't fully understand the XSLT spec. w/o first
understanding XPath. (Arguably, the reverse is true also. ;-)

Didier reply:
Yes I noticed :-)

Cheers
Didier PH Martin
mailto:martind@netfolder.com
http://www.netfolder.com


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS