xsl-list
[Top] [All Lists]

Re: Key containing more than one 'target'?

2005-03-22 08:55:15
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(_dot_)waibel(_at_)imbus(_dot_)de>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
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/*[(_at_)id]" use="@id" />

...

<xsl:apply-templates select="*[(_at_)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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>