Hello
I am trying to transform an XML file that we receive from a 3rd party agency with an XSL file that we've built ourselves.
I'm getting this error message:
XSL Warning: Fatal Error at (file d:\system\iw-home/tmp/cci/tst_iwov_xslt_xml_7260, line 2, column 17): The XML or Text declaration must start at line/column 1/1
XSL Error: Could not parse d:\system\iw-home/tmp/cci/tst_iwov_xslt_xml_7260 document!
So, I decided to try out the example thats specified in the documentation for <iwov_xslt>
tpl:
<iwov_xslt xsl_file='demo.xsl'>
<wow>Hello</wow>
</iwov_xslt>
xsl:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="
http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="wow">
<fun><xsl:value-of select="."/></fun>
</xsl:template>
</xsl:stylesheet>
Which works. I moved the xml into a separate file - which still worked.
I modified the xml so it looked like:
<?xml version="1.0"?>
<wow>Hello</wow>
and I got the following error:
iwov_xslt error:
XalanError:
XSL Warning: Fatal Error at (file d:\system\iw-home/tmp/cci/tst_iwov_xslt_xml_3652, line 2, column 17): The XML or Text declaration must start at line/column 1/1
XSL Error: Could not parse d:\system\iw-home/tmp/cci/tst_iwov_xslt_xml_3652 document!
XSL Warning: Unknown Exception
So, my question is, does Xalan not expect the xml declaration?
This might be a problem, because the XML files that we receive are supposed to be imported into Teamsite as-is i.e. without any filtering.
Any clues?