[Home] [By Thread] [By Date] [Recent Entries]
Hello Emma,
your code is not so wrong, you only set the elements attribute and value-of in the wrong namespace. Otherwise - if the matched element has @colspan or not - your code with little changes should work: > <fo:table-cell> > <xsl:if test='@colspan'> > <xsl:attribute name="number-columns-spanned"> > <xsl:value-of select="@colspan" /> > </xsl:attribute> > </xsl:if> > </fo:table-cell> The 'xsl'-namespace-prefix says, that the XSL-Transformer should handle this node. Otherwise it is a node, that will only be copied to the output, so with your code you should have this <fo:table-cell>
<fo:attribute name="number-columns-spanned">
<fo:value-of select="@colspan" />
</fo:attribute>
</fo:table-cell>in your output, isn't it? Regards, Joerg Emma Larsson wrote: Hi all.. -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 joerg.heinicke@xxxxxxxxx www.virbus.de XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



