Andreas L. Delmelle wrote:
the xml contains the employer data and some general info (once) and the data
from each employees' salary, and I have it structured like :

<employer ref="999999">
        <name>...</name>
        <addr>...</addr>
...
</employer>
<general>
        <date-printed>14-08-2003</date-printed>
        ... [ some other info ]
</general>

<employee ref="0000001">
        <name>...</name>
        ...
</employee>
...
Now, what happens is that the data from the employer-element and the
general-element appear untagged in the .fo, right between the <fo:flow> and
the first <fo:block> (actually it's a <fo:table>).

Sounds like you have something like <xsl:template match="parent-of-employer-and-general-and-employees"> <fo:flow> <xsl:apply-templates> </fo:flow> </xsl:template>

 <xsl:template match="employee">
   ...

You probably want the first template to be
 <xsl:template match="parent-of-employer-and-general-and-employees">
    <fo:flow>
        <xsl:apply-templates select="employee">
                             ^^^^^^^^^^^^^^^^^^
         ...
See
 http://www.w3.org/TR/xslt#built-in-rule
why this is so.

Another weird detail (maybe there's a perfectly valid explanation): although
the xslt and xml have the "ISO-8859-1" encoding, the resulting .fo is
"UTF-8"-encoded.

Why do you think this is weird? Read what the spec tells you about the default output encoding: http://www.w3.org/TR/xslt#section-XML-Output-Method

For these kind of questions, reagarding pure XSLT, you should ask on
the XSL list:
 http://www.mulberrytech.com/xsl/xsl-list/

J.Pietschmann



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



Reply via email to