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

RE: reading content with for-each and generating a tab

Subject: RE: reading content with for-each and generating a table (NEWBIE)
From: Jarno.Elovirta@xxxxxxxxx
Date: Wed, 28 Aug 2002 11:38:50 +0300
xsl for each select info
Hi,

[snip]

> <fo:table border-color="black" border-style="solid" 
> border-width="1pt">
> 								
> <fo:table-column column-width="15cm"/>
> 	<fo:table-body font-size="12pt" font-family="sans-serif">
> 		<xsl:for-each select="//info/kunde">
> 			<xsl:for-each select="*">

You want

  <xsl:for-each select="//info">
    <xsl:for-each select="kunde">

and if possible, don't use //, since it's expensive, rather use /page/info to get the info elements.
 			
> 			<fo:table-row>
> 			<fo:table-cell>
> 				<fo:block>
> 					<xsl:for-each 
> select="."/>

And

<xsl:value-of select="." />

> <!--<xsl:text>dada</xsl:text>-->
> 				</fo:block>
> 								
> 		
> 			</fo:table-cell>			
> 					</fo:table-row>	
> 								
> 					</xsl:for-each>
> 		</xsl:for-each>
> 	</fo:table-body>
> </fo:table>

Jarno

 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.