Hi,

 

I am in the midst of upgrading to XSLT 2.0. One of the reasons moving is to
be able to use the XSLT function unparsed-text.

 

I am using it like:

<fo:page-sequence master-reference="somref

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

    <fo:block>

      <xsl:value-of select="unparsed-text('about.fo'),'utf-8')" 

                         disable-output-escaping="yes"/>

    </fo:block>

  </fo:flow>

</fo:page-sequence>

 

The about.fo is an fo file.

 

The resulting PDF however has a page full of FO instructions (the literal
contents of the about.fo file) not rendered by the FOP engine. When I run
with an XSLT engine (Saxon in oXygen), the resulting fo file looks ok (with
the about.fo nicely in it)

 

I am using my transformer like: transformer.transform(xmlSource, new
SAXResult(fop.getDefaultHandler()));

 

I am using Saxon8, the fop version I am not 100% (my build id is Build-Id in
the manifest is: 20061120-085325-CET, so I probably have a version from end
of last year.)

 

Any clues?

 

Tx.,

 

Raphael

Reply via email to