xsl-list
[Top] [All Lists]

Re: Childnodes on separate lines

2004-11-08 07:02:58
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! :)




<Prev in Thread] Current Thread [Next in Thread>