Yes, generate->serialize_to_xml and xml_file->transform>serialize_to_pdf
both work.

And yes I'm using disable-output-escaping somewhere. Don't tell me I cant? I
need it because I have the following xml :

<data>
  <number>1</number>
  <number>1</number>
  <number>1</number>
  <number>1</number>
  <number>1</number>
  <number>1</number>
</data>

and I want a table with 3 numbers in each row, there can be from 1 to 300
numbers. So my xsl looks like this:

<xsl:template match="number">
  <fo:table-cell>
    <fo:block font-size="12pt" text-align="end"
padding-bottom="10pt"><xsl:value-of select="."/></fo:block>
  </fo:table-cell>
  <xsl:if test="position() mod 12=0">
    <xsl:text
disable-output-escaping="yes">&lt;/fo:table-row&gt;&lt;fo:table-row&gt;&lt;f
o:table-cell/&gt;</xsl:text>
  </xsl:if>
</xsl:template>

<xsl:template select="data">
  <fo:table>
    <fo:table-column column-width="1in"/>
    <fo:table-column column-width="1in"/>
    <fo:table-column column-width="1in"/>
    <fo:table-body>
       <fo:table-row><fo:table-cell/><xsl:apply-templates
select="number"/></fo:table-row>
    </fo:table-body>
  </fo:table>
</xsl:template>

That's the only way I was able to get the document the way I wanted, it
works with the HTML serializer, but not with the PDF serializer. Is there a
problem with disable-output-escaping that I should know about? If there is
one, is there another way to do what I want?

Faw

----- Original Message -----
From: "J.Pietschmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 18, 2002 1:38 PM
Subject: Re: Cocoon PDF creation problems


> This can be wrong. If you are serializing intermediate XML you
> may run into various problems.
>
> Does generate->serialize-to-xml and xml-file->transform->serialize_to_pdf
> also work? If not: are you, by any chance, using disable-output-escaping
> somewhere?
>
> J.Pietschmann
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to