Subject: Re: [xsl] Variable group-by From: "David B. Bitton" <david@xxxxxxxxxxxxxx> Date: Mon, 18 Mar 2002 14:36:54 -0500 |
What I did was create three xsl:key's and then use a variable to decide which one to use like so: <xsl:key name="Status_key" match="APCInstReportList" use="Status"/> <xsl:key name="InstType_key" match="APCInstReportList" use="InstType"/> <xsl:key name="Number_key" match="APCInstReportList" use="Number"/> ... key(concat($group_by,'_key'), *[local-name() = $group_by]) On Mon, Mar 18, 2002 at 05:28:49PM +0000, David Carlisle wrote: > > > I am _not_ being allowed to use a variable for the use attribute. > Because that's what the spec says. > > If this means your key isn't as specific as you would have like, you can > always use a predicate using variable as in key(....)[now I can use $x] > to get back to where you want. > > David > > _____________________________________________________________________ > This message has been checked for all known viruses by Star Internet > delivered through the MessageLabs Virus Scanning Service. For further > information visit http://www.star.net.uk/stats.asp or alternatively call > Star Internet for details on the Virus Scanning Service. > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list -- David B. Bitton david@xxxxxxxxxxxxxx Diversa ab illis virtute valemus.
Attachment:
pgp00006.pgp
Description: PGP signature
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Variable group-by, David Carlisle | Thread | [xsl] Identity transformation (with, Roger L. Costello |
[xsl] problem calling servlet, Leona Slepetis | Date | [xsl] HTML ->WML with XSLT, Jacob P. Glenn |
Month |