[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

defining a key

Subject: defining a key
From: Osman Çınar Eren <Cinar.Eren@xxxxxxxxxxxxx>
Date: Fri, 19 Nov 2004 17:27:43 +0200
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.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.