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

Dynamic Tables in FO

Subject: Dynamic Tables in FO
From: Anthony Ikeda <anthony.ikeda@xxxxxxxxxxxxxxxx>
Date: Thu, 21 Dec 2000 19:06:40 +1100
dynamic fo table column
Okay, I have some XML code that represents a table structure syntax, much
the way it does in html.

However, I'm having problems generating the code to PDF. Here is a clip of
the XML:

<jncTable>
	<jncTableRow>
		<jncTableHeader>Item</jncTableHeader>
		<jncTableHeader>Naming Convention</jncTableHeader>
		<jncTableHeader>Example</jncTableHeader>
	</jncTableRow>
	<jncTableRow>
		<jncTableItem>Arguments/parameters</jncTableItem>
		<jncTableItem>Use a full English...</jncTableItem>
		<jncTableItem>customer, account- or -aCustomer,
anAccount</jncTableItem>
	</jncTableRow>
	<jncTableRow>
		<jncTableItem>Fields/fields/properties</jncTableItem>
		<jncTableItem>Use a full English...</jncTableItem>
		<jncTableItem>firstName, lastName, waprSpeed</jncTableItem>
	</jncTableRow>
</jncTable>


And here is the XSL I'm trying to get working:

<xsl:template match="jncTable" name="111">
<!-- debugging code -->
<fo:block font-size="99pt">here</fo:block>

<fo:block>
	<fo:table>
		<fo:table-column column-width="40mm"/>
		<fo:table-column column-width="100mm"/>
		<fo:table-column column-width="50mm"/>
		<fo:table-body>
			<xsl:for-each select="./jncTableRow">
				<fo:table-row>
					<!-- headers section... -->
					<xsl:for-each
select="./jncTableHeader">
						<fo:table-cell>
							<fo:block>
	
<xsl:value-of select="."/>
							</fo:block>
						</fo:table-cell>
					</xsl:for-each>
					<!-- ...headers section -->
				</fo:table-row>
				<fo:table-row>
					<!-- data section... -->
					<xsl:for-each
select="./jncTableItem">
						<fo:table-cell>
							<fo:block>
	
<xsl:value-of select="."/>
							</fo:block>
						</fo:table-cell>
					</xsl:for-each>
					<!-- ...data section -->
				</fo:table-row>
			</xsl:for-each>
		</fo:table-body>
	</fo:table>
</fo:block>

<!-- debugging code -->
<fo:block font-size="99pt">here</fo:block>
</xsl:template>

When executing the code through cocoon, I get both debug meesage on screen
but the table doesn't create.

Anyone able to help?

Cheers,
Anthony Ikeda,
Web Application Developer,
Proxima Technology,

Level 13,
181 Miller Street,
North Sydney
Australia


PH: +612-9458-1718
Mob: 041 624 5143


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.