Hello,

I'm trying to execute an XSLT that uses the following line: <xsl:output
method="text" encoding="UTF-8"/> and SAXON doesn't appear to support this; I
must output XML or I get a DOM Hierarchy error. If I set the xbean's
'result' attribute to 'string' I get a 'SAXParseException: Content is not
allowed in prolog.'

What's the correct way to configure an XSL with this SE to output Text (for
a fixed length file) in UTF-8?

This is the XSL:
<?xml version='1.0'?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:c="http://www.company.com";>

    <xsl:output method="text" encoding="UTF-8"/>

    <xsl:template match="//c:Header"><xsl:text>INV</xsl:text></xsl:template>

</xsl:stylesheet>

This is the xbean:
<beans xmlns:saxon="http://servicemix.apache.org/saxon/1.0";
        xmlns:c="http://www.company.com";>
    <saxon:xslt
            service="c:TransformService"
            endpoint="TransformToExternalFormat"
            resource="classpath:TransformTest.xsl" 
            result="string"/>

</beans>

-Brian
-- 
View this message in context: 
http://old.nabble.com/SAXON-SE-2009.01---Text-Output-tp28074157p28074157.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to