Subject: Re: [xsl] Setting attributes of FO element From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Wed, 17 Apr 2002 16:14:07 +0200 |
> <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>
<fo:table-cell> <fo:attribute name="number-columns-spanned"> <fo:value-of select="@colspan" /> </fo:attribute> </fo:table-cell>
Hi all..
How do I set the attribute to a FO element after the element has been declared?
I want to do something like this:
<fo:table-cell> <xsl:if test='@colspan'> <fo:attribute name="number-columns-spanned"> <fo:value-of select="@colspan" /> </fo:attribute> </xsl:if> </fo:table-cell>
That is, I want to set the attribute number-columns-spanned for the element table-cell.
But the attribute is not always set in the XML file, so I can't count on the value being set..
The 'solution' above is not supported, at least not as far as I can see. Is there any other way to solve the problem? Any help is appreciated...
/Emma
System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 joerg.heinicke@xxxxxxxxx www.virbus.de
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: RE : [xsl] Setting attributes o, Michael Earls | Thread | Re: [xsl] Setting attributes of FO , David Carlisle |
RE : [xsl] Setting attributes of FO, Nicolas Mazziotta | Date | RE: RE : [xsl] XPath position of ch, Michael Earls |
Month |