|
Subject: RE: [xsl] Keys From: <Jarno.Elovirta@xxxxxxxxx> Date: Thu, 9 Sep 2004 08:58:43 +0300 |
Hi,
> How do you manage this sort of key:
> <xsl:key name="attType"
> match="/root/*/xml/s:Schema/s:ElementType/s:AttributeType"
> use="/root/*[@name()]"/>
>
> I am trying to create a "USE" on a specific node who's name
> can very so:
>
> root/class
> root/house
> root/bird
>
> This select works great:
> <xsl:for-each
> select="/root/*[name()=$TABLE_NAME]/xml/s:Schema/s:ElementType
> /s:AttributeTy
> pe">
>
> Where $TABLE_NAME is a variable.
Do you mean
<xsl:key name="attType"
match="/root/*/xml/s:Schema/s:ElementType/s:AttributeType"
use="name(../../../..)"/>
Cheers,
Jarno - Murrey Gold: Queer As Folk Theme
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Keys, Dimtre Novatchev | Thread | [xsl] how to return from exsl:node-, Dusan Zatkovsky |
| [xsl] Keys, Karl J. Stubsjoen | Date | Re: [xsl] translate for partial uri, Jeff Greif |
| Month |