xsl-list
[Top] [All Lists]

defining a key

2004-11-19 08:27:43
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.

--~------------------------------------------------------------------
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>
  • defining a key, Osman Çınar Eren <=