Subject: [xsl] loop problem (NEWBIE) From: thomas <thomas.lohbeck@xxxxxx> Date: Mon, 09 Sep 2002 19:20:39 +0200 |
Hello first a little german-xml for beginners. ;-) <frage>=<question>, <antwort>=<answer> got it? ok!
xml: <page> <info> <profil> <frage>frage 1 frage 1?</frage> <antwort>antwort 1 antwort 1 antwort 1 antwort 1</antwort> <frage>frage 2 frage 2?</frage> <antwort>antwort 2 antwort 2 antwort 2 antwort 2</antwort> <frage>frage 3 frage 3?</frage> <antwort>antwort 3 antwort 3 antwort 3 antwort 3</antwort> <frage>frage 4 frage 4?</frage> <antwort>antwort 4 antwort 4 antwort 4 antwort 4</antwort> </profil> </info> </page>
xsl: ..... <fo:table padding-left="1.5cm"> <fo:table-column column-width="5cm"/> <fo:table-column column-width="10cm"/> <fo:table-body> <fo:table-row> <fo:table-cell> <fo:block> <fo:table> <fo:table-column column-width="5cm"/> <fo:table-body> <xsl:for-each select="/page/info/profil/frage"> <fo:table-row> <fo:table-cell> <fo:block> <xsl:value-of select="."/> </fo:block> </fo:table-cell> </fo:table-row> </xsl:for-each> </fo:table-body> </fo:table> </fo:block> </fo:table-cell> <fo:table-cell> <fo:block> <fo:table> <fo:table-column column-width="5cm"/> <fo:table-body> <xsl:for-each select="/page/info/profil/antwort"> <fo:table-row> <fo:table-cell> <fo:block> <xsl:value-of select="."/> </fo:block> </fo:table-cell> </fo:table-row> </xsl:for-each> </fo:table-body> </fo:table> </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> .....
thanx thomas
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL transform escape ques, David Carlisle | Thread | Re: [xsl] loop problem (NEWBIE), J.Pietschmann |
RE: [xsl] XSL transform escape ques, Martinez, Brian | Date | RE: [xsl] Joining Multiple XML usin, Dennis |
Month |