XSLT Scenario Works in Debug Only
Posted: Mon Feb 09, 2009 6:13 pm
I'm having problems getting an XSLT transform to work, but only in "normal" mode. If I debug the scenario it works perfectly. In non-debug I get the "Content is not allowed in prolog" error.
I've followed all the advice I could find on the error, including from this board, including triple-checking my encoding, setting BOM handling to "don't write" and changing my encoding across all related files, all to no avail. I've created and re-created scenarios, also to no avail.
Again, it works perfectly in debug.
Is there some place I should look for differences in how debug vs non-debug is run? Any settings I should tweak? Thanks for any help you can offer.
This is a fresh installation, <oXygen/> XML Editor 10.0, build 2008102212
Settings of my scenario:
XSLT tab
XML URL: ${currentFileURL}
XSL URL: file:/Q:/client/table1tocsv.xsl
Transformer: Saxon-B 9.1.0.3
FO Processor Tab
Perform FO Processing: checked
Input: XSLT result as input
Method: txt
Processor: Built-in (Apache FOP)
Output tab
Save as: checked, table1.txt
XSL content:
XML content:
I've followed all the advice I could find on the error, including from this board, including triple-checking my encoding, setting BOM handling to "don't write" and changing my encoding across all related files, all to no avail. I've created and re-created scenarios, also to no avail.
Again, it works perfectly in debug.
Is there some place I should look for differences in how debug vs non-debug is run? Any settings I should tweak? Thanks for any help you can offer.
This is a fresh installation, <oXygen/> XML Editor 10.0, build 2008102212
Settings of my scenario:
XSLT tab
XML URL: ${currentFileURL}
XSL URL: file:/Q:/client/table1tocsv.xsl
Transformer: Saxon-B 9.1.0.3
FO Processor Tab
Perform FO Processing: checked
Input: XSLT result as input
Method: txt
Processor: Built-in (Apache FOP)
Output tab
Save as: checked, table1.txt
XSL content:
Code: Select all
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:output method="text"/>
<xsl:template match="NewDataSet">
<xsl:apply-templates select="NewTable11"/>
</xsl:template>
<xsl:template match="NewTable1">
<xsl:for-each select="*">
<xsl:text>"</xsl:text>
<xsl:value-of select="."/>
<xsl:text>"</xsl:text>
<xsl:if test="position() != last()">
<xsl:value-of select="','"/>
</xsl:if>
</xsl:for-each>
<xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
Code: Select all
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE NewDataSet SYSTEM "Letter_XML.dtd">
<NewDataSet>
<NewTable1>
<Locator_Number>1</Locator_Number>
<Taxpayer_Number>4</Taxpayer_Number>
<Name>xxxxxxxxxxxxx </Name>
<Address1>P.O. BOX xxxxx </Address1>
<City>xxxxxx </City>
<State>TX</State>
<ZipCode>xxxxx-xxxx </ZipCode>
<Collecting_Client>28</Collecting_Client>
<Client_Name>Test xxxxxx</Client_Name>
<Mail_Address_Name>Mail address name</Mail_Address_Name>
<Client_Address1>Addr line 1</Client_Address1>
<Client_Address2>Addr line 2</Client_Address2>
<Client_City>City</Client_City>
<Client_State>xx</Client_State>
<Client_ZipCode>11111</Client_ZipCode>
<Client_Primary_Phone>(xxx) xxx-xxxx Ext. xxxxx</Client_Primary_Phone>
<County>xxxxxx</County>
<OfficialPaymentsCode>1234</OfficialPaymentsCode>
<Due_Date>2009-01-09T00:00:00-06:00</Due_Date>
<Total_Due>326.40</Total_Due>
<Month1_Total_Due>328.80</Month1_Total_Due>
<Month1_PandI>128.8000</Month1_PandI>
</NewTable1>
<NewTable1>