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

Re: DOM and XML parser

Subject: Re: DOM and XML parser
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Fri, 16 Aug 2002 20:06:25 +0100
download dom parser
Hi Didier,

> 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)

Hmm... I wouldn't put it like that. It's true that the syntax of a
pattern is a subset of the syntax of a location path, but a pattern
and an expression do very different things and are used in very
different ways.

A match pattern is like a regular expression -- you test a node
against a match pattern to see if it matches and what you get is
either yes-it-matches or no-it-doesn't-match. You don't get anything
*returned* from a pattern, and a pattern is only relevant if you
already have a node in mind (the node to which you're applying
templates, for example) and you want to see if the pattern matches
that node.

[Taking the analogy with regexps further, there was an interesting
talk at Extreme which touched on the possibility of getting more
detailed information returned from matching on an XSLT pattern in much
the same way as you might get more detailed information returned from
matching on a regexp, about the submatches within the pattern/regexp.]

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 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.