[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 18:09:23 +0100
RE:  DOM and XML parser
Hi Jeny!
I see, so that means something like match="book[(%1=@price)]". being so
that also means that we could do something like
match="book[%@price]|magazine[@price=%1]"??

that could be handy :)

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jeni
Tennison
Sent: Monday, August 19, 2002 3:57 PM
To: Américo Albuquerque
Cc: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  DOM and XML parser


Hi Américo,

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

The same in effect, yes, but the point in fxgrep is that with:

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

the price attribute could be bound to the variable *during* the matching
rather than after finding the node. This saves you from having to scan
the node and its relationships with other nodes more than once, which is
particularly useful as you get to use more complex match patterns.

Anyway, I'm not particularly advocating the idea -- I wouldn't want to
see XSLT complicated in this way (after all, it's getting complicated
enough by XPath 2.0 without anything like this!) -- just thought it was
an interesting approach.

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.