W3C home > Mailing lists > Public > xsl-editors@w3.org > October to December 2000

using xslfo to generate pdf file

From: Yuan gao <ygao@mokonet.com>
Date: Fri, 06 Oct 2000 14:56:59 -0400
Message-ID: <39DE207B.4635A2AD@mokonet.com>
To: xsl-editors@w3.org
hi,

I met this problem here when I used xslfo to generate the PDF file.
I wonder if xslfo support multiple layer loop in generating PDF.

I got this xml :
<A>
    <B>
        <D>
        <D>
    <B>
        <D>
        <D>
        <D>
</A>


<xsl:template match="A">
    <fo:flow>
    <xsl:apply-template/>
    </fo:flow>
</xsl:template>

and:
<xsl:template match="B">
    <fo:block>
    <xsl:apply-template/>
    </fo:block>
</xsl:template>

<xsl:template match="D">
    <fo:block font="10pt" wrap-option="wrap">
    <xsl:value-of select="D"/>
    </fo:block>
</xsl:template>

after I generated the PDF, I found the the font and wrap-option
for D is not applied. what's the problem? is it because there
are too many layers of recursive?

Thanks a lot,
yuan
Received on Friday, 6 October 2000 14:59:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:51 GMT