Re: [xsl] Key containing more than one 'target'?

Subject: Re: [xsl] Key containing more than one 'target'?
From: "Juergen" <xsl@xxxxxxxxxxxxxxx>
Date: Tue, 22 Mar 2005 16:55:15 +0100
Hi Sven,

is it possible to generate a key that contains more "targets"?

try in the key defininition


use="concat(@id,../@id)"

when you use it you have to concat the two values too.

Cheers,

Juergen
----- Original Message ----- From: "Sven Waibel" <sven.waibel@xxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, March 22, 2005 4:25 PM
Subject: [xsl] Key containing more than one 'target'?



Hi,

is it possible to generate a key that contains more "targets"?

in my xsl:

<xsl:key name="ids" match="tc/pc/*[@id]" use="@id" />

...

<xsl:apply-templates select="*[@id and generate-id(.)= generate-id(key('ids', @id))]" />



my xml:

<tc id="123">
<pc id="444">
...
</pc>
</tc>




I need a connection between tc-id and pc-id, so i thought i could be possible to make a key over pc and tc.


Has anybody a idea?

Thanks

Sven

Current Thread