Hello - I have 2 projects one in .net (VB.net and ASP.net) the other in VB6 and ASP - both create an XML document for transformation into HTML.
I want to use a non break white space ie & nbsp inside the XSL so at top of my document I have added the line
<!DOCTYPE xsl:stylesheet [<!ENTITY nbsp " ">]>
folowed by the rest of my XSL statements
<xsl:stylesheet xmlns:xsl=" version="1.1">
<xsl
utput method="xml" indent="yes"/>
.
.
.
etc
This all works fine in the .net project.
When I do the same in my non .net project xsl file I get this error on the transform statement.
"The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document. ".
Also when I use XSL Debugger (v good tool u can get from from TopXML.com) I get the error message - "The element 'xsl:stylesheet' is used but not declared in the DTD schema". I also get this error when using the stylesheet that works ! But the transformation doesn't
I've done a work around with padding but it justs bugs me why it doesn't work
any takers ??
thanks
Graham
I want to use a non break white space ie & nbsp inside the XSL so at top of my document I have added the line
<!DOCTYPE xsl:stylesheet [<!ENTITY nbsp " ">]>
folowed by the rest of my XSL statements
<xsl:stylesheet xmlns:xsl=" version="1.1">
<xsl
.
.
.
etc
This all works fine in the .net project.
When I do the same in my non .net project xsl file I get this error on the transform statement.
"The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document. ".
Also when I use XSL Debugger (v good tool u can get from from TopXML.com) I get the error message - "The element 'xsl:stylesheet' is used but not declared in the DTD schema". I also get this error when using the stylesheet that works ! But the transformation doesn't
I've done a work around with padding but it justs bugs me why it doesn't work
any takers ??
thanks
Graham