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

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 UTC