|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Variable group-by
--x4pBfXISqBoDm8sr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable What I did was create three xsl:key's and then use a variable to decide whi= ch one to use like so: <xsl:key name=3D"Status_key" match=3D"APCInstReportList" use=3D"Status"/> <xsl:key name=3D"InstType_key" match=3D"APCInstReportList" use=3D"InstType"= /> <xsl:key name=3D"Number_key" match=3D"APCInstReportList" use=3D"Number"/> =2E.. key(concat($group_by,'_key'), *[local-name() =3D $group_by]) On Mon, Mar 18, 2002 at 05:28:49PM +0000, David Carlisle wrote: >=20 > > I am _not_ being allowed to use a variable for the use attribute. > Because that's what the spec says. >=20 > 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. >=20 > David >=20 > _____________________________________________________________________ > 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. >=20 > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list --=20 David B. Bitton david@xxxxxxxxxxxxxx Diversa ab illis virtute valemus. --x4pBfXISqBoDm8sr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8lkHWMNOMzNRRk50RAv/EAJwJH0yAfobDcFgKzTHs5p0La1GHlQCcCGa/ R6x6SYTRlpTTkJ750ZUgJrw= =CqLs -----END PGP SIGNATURE----- --x4pBfXISqBoDm8sr-- XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








