Re: [xsl] Childnodes on separate lines

Subject: Re: [xsl] Childnodes on separate lines
From: Martijn Kint <martijn@xxxxxxxxxx>
Date: Mon, 08 Nov 2004 15:02:58 +0100
David Carlisle wrote:

<fo:block padding-top="1mm">
 <xsl:value-of select="artnrs[*]"/>
</fo:block>

that takes the string value of the artnrs element, ie the concatenation
of the character data of all its descendants. In particular it throws
away the information that you had all those child elements.

You want an fo:block for each child so change the above lines to

<xsl:apply-templates select="*"/>

and have

<xsl:template match="artnrs/*">
<fo:block padding-top="1mm">
 <xsl:value-of select="."/>
</fo:block>
</xsl:template>



David



thanks David that works! :)

Current Thread