This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Setting attributes of FO element
- From: "Emma Larsson" <emma dot larsson at itsip dot se>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 17 Apr 2002 16:40:38 +0200
- Subject: Re: [xsl] Setting attributes of FO element
- References: <E392EEA75EC5F54AB75229B693B1B6A70152E0E3@esebe018.NOE.Nokia.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Thank you!
----- Original Message -----
From: <Jarno.Elovirta@nokia.com>
To: <xsl-list@lists.mulberrytech.com>
Sent: Wednesday, April 17, 2002 3:57 PM
Subject: RE: [xsl] Setting attributes of FO element
> > 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...
>
> The attribute and valua-of instructions are in wrong namespace
>
> <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>
>
> Cheers,
>
> Santtu
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list