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

RE: Grouping by key

Subject: RE: [xsl] Grouping by key
From: Osman Çınar Eren <Cinar.Eren@xxxxxxxxxxxxx>
Date: Tue, 23 Nov 2004 11:59:54 +0200
key in xsl
hi,

i wrote all of my code in another topic 'understanding key usage'.
i reimplemented my problematic solution using a template:

<xsl:template name="kumdoviz">
<xsl:param name="mydovizler" />
<!--<xsl:for-each select="$mydovizler[key='USD']">-->
<xsl:for-each select="$mydovizler[generate-id(.) =
generate-id(key('dkey',key)[1])]">
<!--<xsl:for-each select="value[generate-id()=
generate-id(key('categorise',usthesapkodu)[1])]">-->
 	<fo:table-row>
        <fo:table-cell>
		<fo:block text-align="right" font-size="8pt" >
		[DDD] <xsl:value-of select="value/doviz-adi"/>
		</fo:block>
	</fo:table-cell>
        </fo:table-row>
</xsl:for-each>
</xsl:template>

i want the template to group all of dovizler nodes under $mydovizler according
to their 'key' values. but it gives a strange result. do you need that strange
results?

regards

-----Original Message-----
From: Geert Josten [mailto:Geert.Josten@xxxxxxxxxxx]
Sent: Friday, November 12, 2004 9:35 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Grouping by key


Osman G}nar Eren wrote:

> Hi,
>
> i try to have a PDF output using FOP. my problem is with grouping. I could
not have an indepth understanding of generate-id and key concepts. so i
couldnot transfer the solution given by you to my case.
> so your help on grouping is greatly appreciated.
>
> regards.

Write a small testcase (xml + xsl + desired output in xml) and paste it in a
message that describes
which part doesn't seem to work as you expect. We can't help without
details...

Grtz,
Geert

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.