This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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@codenoevil.com

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]