|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: loop problem (NEWBIE)
thomas wrote:
I want a simple fo:table. Left cell, the question, right cell the answer.
If you are stuck with your XML, and you are sure the answer to
a certain question is always the antwort element after the frage
element, you can select the questions and get the according answer
using the following-sibling axis:
...
<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-cell>
<fo:block>
<xsl:value-of select="following-sibling::aantowrt[1]"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:for-each>
</fo:table-body>
...J.Pietschmann XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








