need clarifications on XPath vs pattern match

Michael Fuller msf at mds.rmit.edu.au
Tue Dec 14 01:07:51 GMT 1999


I wrote [re. def. of XSLT "patterns"]:
>> Not quite. See XSLT, section 5.2:
[...]

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

:-) I guess so, as long as you're clear that's only an approximate definition.

>> "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."

> I expected a better definition. don't you?

Ok; the introduction to XPath also states:
    "The primary syntactic construct in XPath is the expression. An
    expression matches the production Expr. An expression is evaluated to
    yield an object, which has one of the following four basic types:

	 * node-set (an unordered collection of nodes without duplicates) 
	 [...other basic types...] 

That enough?
    
Michael

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at 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 at ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)





More information about the Xml-dev mailing list