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

RE: variables/parameters in match of xsl:key, 'ends-wi

Subject: RE: variables/parameters in match of xsl:key, 'ends-with'
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 10 Jan 2001 17:00:27 -0000
parameters xsl match
> Does anyone know if future versions of XSLT will allow variables or
> parameters in the "match" attribute of xsl:key?

No, I can say confidently that no-one does.
> 
> In particular, I have a parameterized XSLT stylesheet (using 
> xsl:param), where the param is used to filter what is generated.
>
Yes, that's a nice use case. The restriction was put it to ensure
non-circularity (the value of the variable might depend on the key), but in
fact the restrictions on non-circularity that are there in the spec are
already broken, e.g. there's nothing in the spec that stops you writing:

<xsl:variable name="x">
  <xsl:call-template name="y"/>
</xsl:variable>

<xsl:template name="y">
  <xsl:value-of select="$x"/>
</xsl:template>

so my view would be to get rid of all the "static" restrictions and replace
them with a run-time restriction that says you can't refer to a variable
while you are evaluating it. It's quite hard, though, to express that in
rigorous language.

Mike Kay 

 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.