This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: reading content with for-each and generating a table (NEWBIE)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]