|
Subject: [xsl] defining a key From: Osman Çınar Eren <Cinar.Eren@xxxxxxxxxxxxx> Date: Fri, 19 Nov 2004 17:27:43 +0200 |
hi,
can you help me on defining an XSL key?
my problem is:
in the XSL file if i write:
<xsl:for-each select="$muhkodlar/dovizler[key='USD']">
write the items
</xsl:for-each>
write the items whose key values are equal to 'USD'.
however if i try to use Muenchian Method,
<xsl:key name="dkey" match="dovizler" use="key"/>
<xsl:for-each select="$muhkodlar/dovizler[generate-id(.) =
generate-id(key('dkey', 'USD'))]">
list the items
</xsl:for-each>
does not group the items whose key values are 'USD'.
So i think i have a problem in defining the key. By the way $muhkodlar is a
nodeset which contains elements such as:
<value>
<dovizler>
<key>USD</key>
<value>
<v1>100</v1>
</value>
</dovizler>
.
.
.
</value>
what am i missing?
thanks in advance.
best regards.
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] New to the List, Chris Burns | Thread | [xsl] Attribute to elements convers, jcastanheira@xxxxxxx |
| RE: [xsl] Sorting RTF, Michael Kay | Date | [xsl] On Sourceforge: Cool: Saxon d, Gunther Schadow |
| Month |