|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Keys
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
|
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








