[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: RE: DOM and XML parser

Subject: RE: RE: DOM and XML parser
From: "Didier PH Martin" <martind@xxxxxxxxxxxxx>
Date: Fri, 16 Aug 2002 14:16:24 -0400
xml select single node

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Brown
Hi Mike


Mike said:
Technically, the value of the match attribute is a 'pattern',
defined in XSLT only. It is a restricted kind of XPath expression
that a single node can be tested against for a match, rather than
a means of locating multiple nodes or producing some other kind of
XPath object (boolean, number, string).

The value of a select attribute is an XPath expression, though.

Didier replies:
Exact. Sorry I forgot to say that the match attribute's value is valid
only for an Xpath subset. The subset that refers to a single node.
So to recap:
a) the match attribute uses a subset of Xpath. A subset used to locate a
particular node. The result set of a match is a singleton (i.e. a single
entity)
b) the select attribute uses the Xpath 1.0 complete set since the result
of a selection could be either a singleton or a collection. Not to
mention that it could be other types like you mentioned (boolean,
etc...). As you know, Xpath 1.0 contains some functions and these
function return values like numbers, bolean, etc..

Thanks Mike for mentioning this imprecision. I just recap for our fellow
who asked the question at first.

Cheers
Didier PH Martin





 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.