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

RE: Should expansions be allowed in select/match strings ? (

Subject: RE: Should expansions be allowed in select/match strings ? (OR can you solve this without this !?)
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 29 Mar 1999 11:09:35 +0100
RE: Should expansions be allowed in select/match strings ? (
Title: RE: Should expansions be allowed in select/match strings ? (OR can you solve this without this !?)

> I'm trying to solve a problem in a stylesheet where I need to
> reference another element based upon a match between 2
> attributes.

If XSL is to be extended to accommodate this requirement, I'm sure the right answer is something like range variables in SQL, rather than fiddling about with textual substitution mechanisms.

Something like:

<xsl:template match="file" as="$file">
  <xsl:for-each select="//item[@name=$file/@filename]">

(sorry this doesn't match your example but I hope you get the idea...)

Of course this could be part of a general mechanism for using variables in XSL (the current "counters" are an initial and very restrictive attempt).

Mike Kay

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.