|
Subject: RE: [xsl] Grouping by key From: Osman Çınar Eren <Cinar.Eren@xxxxxxxxxxxxx> Date: Tue, 23 Nov 2004 11:59:54 +0200 |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Grouping by key, Geert Josten | Thread | [xsl][fo] different layout for 1 an, Thomas Feix |
| RE: [xsl] storing the result of a t, Michael Kay | Date | Re: [xsl] storing the result of a t, David Carlisle |
| Month |