[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: key selecting problem.
Subject: Re: key selecting problem.
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Mon, 30 Sep 2002 23:43:37 +0200
|
Hi Thomas,
can you provide some code from your stylesheet, especially the key
definition?
Regards,
Joerg
thomas wrote:
hello
again I have a syntax problem...I think...
I need to select the
/OfferPage/info/massnahmen/ratierliche/investitionen/massnahme/@haeufigkeit
when the value is 1 I need to get the "Monatlich" text out from another
node. It correspondents with the
/OfferPage/output/massnahmen/ratierlich/intervall/intervall_item/@value
when 4 = Jährlich
and so on....
<OfferPage>
<output>
<massnahmen>
<ratierlich>
<intervall>
<intervall_item value="1">Monatlich</intervall_item>
<intervall_item value="2">Vierteljährlich</intervall_item>
<intervall_item value="3">Halbjährlich</intervall_item>
<intervall_item value="4">Jährlich</intervall_item>
</intervall>
</ratierlich>
</massnahmen>
</output>
</OfferPage>
It should something like:
<xsl:value-of select="key('intervall_by_id', @haeufigkeit)/??and?here???"/>
and maybe i screwed something in the xsl:key name definition too.
I cant get it right...sorry Im a newbie...
any helps from the pros?
thanx
loebek
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
RSS 2.0 |
|
Atom 0.3 |
|
|