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

Re: understanding key usage

Subject: Re: understanding key usage
From: Osman Çınar Eren <Cinar.Eren@xxxxxxxxxxxxx>
Date: Mon, 22 Nov 2004 16:02:17 +0200
key usage
thank you for your answer:

if value is a nodeset and i would like to search all B elements under it whose
keys have a value of 'USD', how should
i define the key for this nodeset?
<value>
	<B>
		<key>USD</key>
		<value>
			<v1>10</v1>
		</value>
	</B>
	<B>
		<key>EUR</key>
		<value>
			<v1>10</v1>
		</value>
	</B>
</value>

I have a nodeset which consists of 'value' elements like above. I want to get
a nodeset of B elements whose key values are same.(e.g. all the value
elements'(in this nodeset) B elements whose keys are 'USD'.)
if nodeset is -> tempnodeset

how should i define the select clause and the key?

???<xsl:for-each select="$tempnodeset/B[generate-id()=
generate-id(key('dkey','USD')[1])]">???


when i write <xsl:for-each select="$tempnodeset/B[key='USD')]">, i have all of
the value elements' B elements in this nodeset whsoe keys are 'USD'. But the
grouping with the key does not work.

any help will be appreciated.


-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Monday, November 22, 2004 2:39 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [SPAM] - Re:  understanding key usage - Bayesian Filter
detected spam



> opss. sorry in the second one, dovizler would be B.

I suspected as much, but as the rest of the msg hopefully showed, the two
expressions are still very different.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.