[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: "Américo Albuquerque" <aalbuquerque@xxxxxxxxxxxxxxxx>
Date: Mon, 19 Aug 2002 11:56:24 +0100
tennison and new mexico
Hi Jeni!
yes, it is an interesting idea. but that whouldn't be the same as
setting the variable after the match??
like:
<xsl:template match="book[@price]">
 <xsl:variable name="v" select="@price"/>
 ...



-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jeni
Tennison
Sent: Saturday, August 17, 2002 10:46 AM
To: Didier PH Martin
Cc: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  DOM and XML parser


Hi Didier,

> Jeni said:
> [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.]
>
> Didier replies:
> Gee, sound interesting. Its too bad I couldn't be at the conference.
> It sounds like a lot of interesting stuff happened there. Do you mean
> that more than a boolean value could be returned? Like, for instance,
> some info about the node's contained collection, is that it?

The talk was about binary queries in the fxgrep/fxt work at the
University of Trier. See http://www.informatik.uni-trier.de/PSI/DocML/
for information, and their paper is at
http://www.informatik.uni-trier.de/~aberlea/publications/extreme2002/que
ries.pdf.

As I understood it, it was a way of assigning variables based on things
that were matched during the pattern match. If you have a '%' in front
of a location path within an expression then the node-set identified by
that location path is assigned to a variable. So for
example:

<xsl:template match="book[%@price]">
  ...
</xsl:template>

then the current node is the book element (as normal) and the variable
$1 (I think) is the price attribute.

The rest of the paper got rather technical about querying using forest
grammars and things, but I thought this was quite an interesting idea.

Cheers,

Jeni

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


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



 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.