This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE : Setting attributes of FO element
- From: "Nicolas Mazziotta" <Nicolas dot Mazziotta at ulg dot ac dot be>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 17 Apr 2002 16:10:05 +0200
- Subject: RE : [xsl] Setting attributes of FO element
- Reply-to: xsl-list at lists dot mulberrytech dot com
Attention:
<fo:attribute> and <fo:value-of> do not exist.
<xsl:if> must test a value.
What do you want to do? Could you be clearer (more concrete)?
> -----Message d'origine-----
> De : owner-xsl-list@lists.mulberrytech.com [mailto:owner-xsl-
> list@lists.mulberrytech.com] De la part de Emma Larsson
> Envoyé : mercredi 17 avril 2002 15:47
> À : xsl-list@lists.mulberrytech.com
> Objet : [xsl] Setting attributes of FO element
>
> 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
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list