XML/XSL Standards and .NET
-
In the XSL file, the following syntax is used: However, in the XML file, the following syntax is used: In the XSL file, it’s a colon after ‘xml’, in the XML file, it’s a dash. Why is this? (xsl:stylesheet versus xml-stylesheet) Internet Explorer can handle a colon or a dash in the XML, and transforms the XML correctly into the browser window but .NET only accepts a dash when parsing XML in code. Also, .NET only accepts the http://www.w3.org/1999/XSL/Transform namespace, and not the older http://www.w3.org/TR/WD-xsl namespace. Am I right with these assumptions? Thanks, John.
-
In the XSL file, the following syntax is used: However, in the XML file, the following syntax is used: In the XSL file, it’s a colon after ‘xml’, in the XML file, it’s a dash. Why is this? (xsl:stylesheet versus xml-stylesheet) Internet Explorer can handle a colon or a dash in the XML, and transforms the XML correctly into the browser window but .NET only accepts a dash when parsing XML in code. Also, .NET only accepts the http://www.w3.org/1999/XSL/Transform namespace, and not the older http://www.w3.org/TR/WD-xsl namespace. Am I right with these assumptions? Thanks, John.
-
Two different things, one is a processing instruction with target "xml-stylesheet", the other is a start tag with name "stylesheet" which is in namespace "xsl".
Thanks :)