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

reading content with for-each and generating a table (

Subject: reading content with for-each and generating a table (NEWBIE)
From: thomas <thomas.lohbeck@xxxxxx>
Date: Wed, 28 Aug 2002 10:31:45 +0200
plz ort
Hello...me again...

I like to read the content from the <kunde> tag with the <xsl:for-each> and generate a table containing a number of rows equal to the number of subelements from <kunde> with the content within.

 |Gaggo           |
 |Schorsch        |
 |Röslistrasse 40 |
 |Postfach        |
 |8000            |
 |Zureich         |
 |Schweiz         |

I managed to create the table but cant read the content from the subelements. only the content from <kunde>
I think the <xsl:value-of> is my problem.

The solution is close, but Im to stupid.
Thanx a lot
thomas l from z


             <adresse1>Röslistrasse 40</adresse1>
             <logo file="moz.jpg"/>
             <adresse1>Stauffacherstr. 106</adresse1>
             <firma>Arthur Andersen</firma>
             <tel_g>01 350 44 40</tel_g>
             <mobile>079 987 65 32</mobile>
         <!-- a lot more tags in here -->
     <!-- a lot more tags in here -->


xsl should look like this


<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="*">
					<xsl:for-each select="."/>							<!--<xsl:text>dada</xsl:text>-->
			</fo:table-cell>								</fo:table-row>	

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

Current Thread


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.
First Name
Last Name
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.