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

xsl:use-attribute-sets in <fo:block>

From: Elvira Nieto Carretero <encarretero@sadiel.es>
Date: Tue, 13 Jan 2004 13:47:38 +0100
Message-ID: <002101c3d9d3$6d1c1670$420210ac@sadiel.es>
To: <www-xsl-fo@w3.org>
Hello. I'm a spanish girl so my english is poor. Sorry about my english.

I am treating to assign styles to a block in a xsl fo file. My code is:

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">

<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>

<xsl:template match="noticia">

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xml.apache.org/fop/extensions">

<fo:layout-master-set>

<fo:simple-page-master master-name="minoticia" page-height="29.7cm" page-width="21cm" margin-top="72pt" margin-bottom="36pt" margin-left="72pt" margin-right="72pt">

<fo:region-before extent="72pt"/>

<fo:region-body margin-top="72pt"/>

<fo:region-after extent="1cm"/>

</fo:simple-page-master>

<fo:page-sequence-master master-name="all">

<fo:repeatable-page-master-alternatives>

<fo:conditional-page-master-reference master-reference="minoticia" page-position="first"/>

</fo:repeatable-page-master-alternatives>

</fo:page-sequence-master>

</fo:layout-master-set>

<fo:page-sequence master-reference="all">

<fo:flow flow-name="xsl-region-body">

<fo:table>

<fo:table-column column-width="100%" right=""/>

<fo:table-body>

<fo:table-row>

<fo:table-cell>

<xsl:apply-templates select="titulo"/>

</fo:table-cell>

</fo:table-row>

</fo:table-body>

</fo:table>

</fo:flow>

</fo:page-sequence>

</fo:root>

</xsl:template>

<xsl:template match="titulo">

<fo:block>

<xsl:apply-templates/>

</fo:block>

</xsl:template>

</xsl:stylesheet>



But i obtain the mistake "This file cannot be opened because it does not contain pages".

My xml file have data.



Thank you very much



A kiss

-- 
   E-mail: enieto@isotrol.com
Received on Tuesday, 13 January 2004 07:54:30 GMT

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