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

Grouping in a table

Subject: Grouping in a table
From: Osman Çınar Eren <Cinar.Eren@xxxxxxxxxxxxx>
Date: Tue, 9 Nov 2004 15:38:32 +0200
html table in table
Hi,
according to what i have learned from this list, i triesd to implement the
following XSL:

<xsl:key name="categorise" match="value" use="C"/>

<fo:table-body>
              		<xsl:apply-templates select="elementlist[key='aktif']"/>
</fo:table-body>

<xsl:template match="elementlist">
      	<xsl:apply-templates select="value[generate-id()=
generate-id(key('categorise',C)[1])]" mode="catrows"/>
</xsl:template>

<xsl:template match="catrows">
	<fo:table-row>
		<xsl:apply-templates select="key('categorise',C)" mode="value"/>
	</fo:table-row>
</xsl:template>

<xsl:template match="value">
<fo:table-cell border-width="0.2mm" border-style="solid">
		  <fo:block text-align="left" font-size="8pt" >
			<xsl:value-of select="A"/>
		  </fo:block>
		</fo:table-cell>
</xsl:template>

i try to create the following table:
A               B                   C                      D
--------------------------------------------------------------
110             asa                 110                   sss
--------------------------------------------------------------
2210            sas                 221                    sss
22110           sss                 221                    sa
22101           ssa                 221                    a
--------------------------------------------------------------
2220           ...


with an XML of:
<value>
<A>110</A>
<B>asa</B>
<C>110</C>
<D>sss</D>
</value>
.
.
.

(i guess i should use a table in table?)
thanks in advance.
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.