> I am trying to convert C# project from .NET 1.1 to .NET 2.0. I am using the
> XML Document Object Model to display an XML string in a webbrowser control
[quoted text clipped - 10 lines]
> What stylesheet URI can I pass to the XslCompiledTransform Load() method to
> get the default stylesheet used by Internet Explorer?

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Martin,
Do you mean there is no version of DEFAULTSS.xsl that has been converted to
be compatible with XSLT 1.0 so it can be used with XslCompiledTransform?
Why would Microsoft depricate XmlTransform with nothing to allow
XslCompiledTransform to display XML in a web browser control?
Thanks,
Tom
>> I am trying to convert C# project from .NET 1.1 to .NET 2.0. I am using
>> the XML Document Object Model to display an XML string in a webbrowser
[quoted text clipped - 23 lines]
> use the eXml control in your ASP.NET web pages, it has a property
> ShowFriendlyXml to pretty-print XML.
Oleg Tkachenko - 07 Feb 2008 22:26 GMT
Microsoft never converted defaultss.xsl to XSLT.
This isn't possible, because WD-XSL had different data model, e.g.
defaultss.xsl supports xml declaration and CDATA sections, which is
impossible in XSLT.
You can get XSLT version (a bit limited WRT above) at
http://www.dpawson.co.uk/xsl/sect2/microsoft.html#d7451e227

Signature
Oleg
> Martin,
>
[quoted text clipped - 33 lines]
>> use the eXml control in your ASP.NET web pages, it has a property
>> ShowFriendlyXml to pretty-print XML.
Martin Honnen - 08 Feb 2008 12:54 GMT
> Do you mean there is no version of DEFAULTSS.xsl that has been converted to
> be compatible with XSLT 1.0 so it can be used with XslCompiledTransform?
There are various attempts to convert that default.xsl to XSLT 1.0, I
pointed you to eXml which contains one I think. You can also search the
web, I think Dimitre Novatchev's XPath visualizer has one too.
> Why would Microsoft depricate XmlTransform with nothing to allow
> XslCompiledTransform to display XML in a web browser control?
I don't understand that question. What is "XmlTransform" exactly? The
.NET framework has two XSLT 1.0 processors, one is
System.Xml.Xsl.XslTransform to be used in .NET 1.x, the second is
XslCompiledTransform in the same namespace, to be used in .NET 2.0 and
later. Both do support XSLT 1.0 only, not the working draft version that
MSXML 3 and older support. And MSXML is completely independent of the
.NET framework.
As for the web browser control, that is a WinForms control
<URL:http://msdn2.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx>
in .NET 2.0 and later. As far as I understand, it is a managed wrapper
around the native web browser control so it uses MSXML 3 anyway to parse
and display XML.

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/