White space precceding converted file
Posted: Thu Mar 17, 2005 4:53 am
I am converting an XML document to HTML and require this html document to be EDI'ed on.
Unfortunately during the xslt parse there is three white space characters being added to th start of the file preventing the EDI function. These chars are obviously not visble in note pad or IE when viewing the html, however in the only viewable in a Binary editor in visual studio there characters values (in hex) are "EF BB BF" which appear as "  " when pasted in here
Why are these getting added onto the start of the file? it seems to happen even in a text conversion.
Is it the VB.net 2.0 Code:
Dim nameXslt As New Query.XsltCommand
'Compile the stylesheet.
nameXslt.Compile(XSLTFile)
'Transform the file.
nameXslt.Execute(inputfilename, outputfilename)
Or is it the xslt:
<xsl:stylesheet version = '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<!--GST NUMBER IS HARD CODED -->
<xsl:template match="/"><xsl:apply-templates select="Invoice"/></xsl:template>
<xsl:output method="html" omit-xml-declaration="yes" />
<xsl:template match="Invoice">
......
any help would be greatly appreciated, as this is becoming quite frustrating
Rhys
Unfortunately during the xslt parse there is three white space characters being added to th start of the file preventing the EDI function. These chars are obviously not visble in note pad or IE when viewing the html, however in the only viewable in a Binary editor in visual studio there characters values (in hex) are "EF BB BF" which appear as "  " when pasted in here
Why are these getting added onto the start of the file? it seems to happen even in a text conversion.
Is it the VB.net 2.0 Code:
Dim nameXslt As New Query.XsltCommand
'Compile the stylesheet.
nameXslt.Compile(XSLTFile)
'Transform the file.
nameXslt.Execute(inputfilename, outputfilename)
Or is it the xslt:
<xsl:stylesheet version = '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<!--GST NUMBER IS HARD CODED -->
<xsl:template match="/"><xsl:apply-templates select="Invoice"/></xsl:template>
<xsl:output method="html" omit-xml-declaration="yes" />
<xsl:template match="Invoice">
......
any help would be greatly appreciated, as this is becoming quite frustrating
Rhys
