[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Hello out there!
I try to generate a simple table with rows accordingly to the number of the <kunde> sub elements. Got it?
Warning:the <kunde> appears several times in the xml but under other parents! thats why im doing <xsl:for-each select="//info/kunde"> (double slash)
--xml-snippet------------------------------
--/xml-snippet-----------------------------
should give me a 1x7 table like
xsl should look like this
--xsl-snippet------------------------------
--/xsl-snippet-----------------------------
if I shoot it trough fop it say only error:null = thank you my dear for the generous error message....
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
[xsl] xsl:for-each -> table -> pdf problem (NEWBIE)
Subject: [xsl] xsl:for-each -> table -> pdf problem (NEWBIE) From: thomas <thomas.lohbeck@xxxxxx> Date: Mon, 26 Aug 2002 17:53:39 +0200 |
Hello out there!
I try to generate a simple table with rows accordingly to the number of the <kunde> sub elements. Got it?
Warning:the <kunde> appears several times in the xml but under other parents! thats why im doing <xsl:for-each select="//info/kunde"> (double slash)
Im an absolut beginner, so be patient with me. ;-) probably just a dump syntax error...
--xml-snippet------------------------------
<page> <info> <offerte> <datum>17.08.2002</datum> </offerte> <kunde> <name>Gaggo</name> <vorname>Schorsch</vorname> <adresse1>Röslistrasse 40</adresse1> <adresse2>Postfach</adresse2> <plz>8000</plz> <ort>Zureich</ort> <land>Schweiz</land> </kunde> <berater> <logo file="moz.jpg"/> <nachname>Müller</nachname> <vorname>Maria</vorname> <adresse1>Stauffacherstr. 106</adresse1> <adresse2/> <plz>8004</plz> <ort>Zureich</ort> <land>Schweiz</land> <firma>Arthur Andersen</firma> <tel_g>01 350 44 40</tel_g> <mobile>079 987 65 32</mobile> <email>maria.mueller@xxxxxxxxxx</email> </berater> <!-- a lot more tags in here --> </info> <!-- a lot more tags in here --> </page>
--/xml-snippet-----------------------------
should give me a 1x7 table like
+----------------+ |Gaggo | +----------------+ |Schorsch | +----------------+ |Röslistrasse 40 | +----------------+ |Postfach | +----------------+ |8000 | +----------------+ |Zureich | +----------------+ |Schweiz | +----------------+
xsl should look like this
--xsl-snippet------------------------------
<fo:block font-size="12pt" font-family="sans-serif" margin-left="5cm"> <fo:table> <fo:table-column column-width="15cm"/> <fo:table-body>
<xsl:template match = "/" > <xsl:for-each select = "//info/kunde" > <fo:table-row> <fo:table-cell> <fo:block><xsl:text > <xsl:value-of select = "." /></xsl:text></fo:block> </fo:table-cell> </fo:table-row> </xsl:for-each> </xsl:template> </fo:table-body> </fo:table> </fo:block>
--/xsl-snippet-----------------------------
if I shoot it trough fop it say only error:null = thank you my dear for the generous error message....
thanx for helping me. cu thomas l from z
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] view text size, Hunsberger, Peter | Thread | Re: [xsl] xsl:for-each -> table -> , J.Pietschmann |
RE: [xsl] Templates, variables, and, Kimberly Hahn | Date | [xsl] "Manual web service..." - XSL, Francois Liot |
Month |
Keywords