[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] defining a key
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.
|
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
|