W3C home > Mailing lists > Public > www-xsl-fo@w3.org > January 2004

RE: use-attribute-sets in

From: Elvira Nieto Carretero <encarretero@sadiel.es>
Date: Tue, 13 Jan 2004 16:38:36 +0100
Message-ID: <000e01c3d9eb$4f908880$420210ac@sadiel.es>
To: <www-xsl-fo@w3.org>
Thanks, Victor by to respond so fast.

It seems that before I did not explain very well my question. My code fails when i add the code corresponding to 

<xsl:attribute-set name="titulodestacado">

<xsl:attribute name="font-size">12</xsl:attribute>

<xsl:attribute name="text-align">justify</xsl:attribute>

<xsl:attribute name="font-family">Verdana, Arial, Helvetica, sans-serif</xsl:attribute>

<xsl:attribute-set name="text-decoration">none</xsl:attribute-set>

<xsl:attribute-set name="font-weight">bold</xsl:attribute-set>

<xsl:attribute-set name="text-transform">uppercase</xsl:attribute-set>

<xsl:attribute-set name="color">#444343</xsl:attribute-set>

</xsl:attribute-set>

and when i use xsl:use-attribute-sets in



<xsl:template match="titulo">

<fo:block xsl:use-attribute-sets="titulodestacado">

<xsl:apply-templates/>

</fo:block>

</xsl:template>



Do you understand me now?



If I eliminate that code, my code run perfectly and i need use it.

A example code of my xml is:

<?xml version="1.0"?>

<noticia>

<titulo>Educacion invertira 33 millones en nuevas infraestructuras docentes en la provincia de Cadiz</titulo>

</noticia>

It's very simple, isn't it?

Thanks
Received on Tuesday, 13 January 2004 10:38:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:12 GMT