XSL-FO cannot be opened
ynandiSep 14 2008 — edited Sep 23 2008Hello:
I created a simple XSL-FO file and saved it as test.xml. Below is the simple code and it generates a PDF report for me when I submit it from outside APEX to
a XSL-FO formatter using Apache-Cocoon.
When I try to create this layout in APEX in the report layout, I can save it but it does not open when I try to download it. It gives me a message like:
"Switch from current encoding to specified encoding not supported. Error processing resource 'file:///C:/Documents and Setti...
<?xml version = '1.0' encoding = 'utf-8'?>"
----------------------------------------------------XSL-FO code ---------------------------------------------------------------------------------
<?xml version = '1.0' encoding = 'utf-8'?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:ora="http://www.oracle.com/XSL/Transform/java/"
xmlns:xdofo="http://xmlns.oracle.com/oxp/fo/extensions"
xmlns:xdoxslt="http://www.oracle.com/XSL/Transform/java/oracle.apps.xdo.template.rtf.XSLTFunctions"
xmlns:xdoxliff="urn:oasis:names:tc:xliff:document:1.1" xmlns:xlink="http://www.w3.org/1999/xlink">
<xsl:template match="/">
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="master0" margin-left="66.6pt" margin-right="66.6pt"
page-height="#PAGE_HEIGHT#pt" page-width="#PAGE_WIDTH#pt" margin-top="36.0pt"
margin-bottom="36.0pt">
<fo:region-body region-name="region-body"
margin-top="0.5in"
margin-bottom="1in"
margin-left="0.5in"
margin-right="0.5in" />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="master0">
<fo:flow flow-name="region-body">
<fo:block>
<xsl:apply-templates select="//DEPARTMENT"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>
--------------------------------------------------***** ----------------------------------------------------------
Any help would be appreciated ...
Yesh