I'm not sure if this would classify as an XML or ASP question:
I'm redoing someone's website who sells various products. I've decided to teach myself XSLT and re-do the entire site using XML.
I'm creating .aspx files with which will include an XML file of the products at the bottom of each page. To do this, I have the following code in my .aspx file where the XML data goes:
<asp:Xml runat="server" documentSource="more.xml" transformSource="awboi.xsl" id="Xml1" />
The XML file displays perfectly and is transformed exactly as it should be. However, when I go to validate the page at the W3C website, it will not validate because an XML declaration has been added at the point the code (above) is in my source.
So, in the middle of my source code is:
<?xml version="1.0" encoding="utf-8"?>
...and then all my transformed XML data
Is this a big deal not to pass validation on one error? Is there a way to prevent ASP from adding the XML declaration in the middle of my page? I'm using Expression Web if that makes any difference.
Thanks for any thoughts. I appreciate it. This is only my 3rd day of learning XML and XSLT, so go easy on me.
Here are the links to the various pages:
Page in question: Sample Page - View Source to see what I mean
XML source: XML File
XSL source: XSL File