Random photo
Loading...
Domains for sale
|
December 16, 2004What's wrong with XslTransform's API?I wonder if is there is something inherently wrong with XslTransform's class API? I was stunned again today reading this post in microsoft.public.dotnet.xml newsgroup: I still don't see any way to create a XslTransform from a XmlDocument?That's not the first time I see it actually. The answer of course is - XmlDocument implements IXPathNavigable, so just pass it to Load() method as is. Many developers don't see it, I wonder why? I'd like to ask - do YOU think XslTransform class provide intuitive enough API (I mean these 5 overloads of Load() and 9 Transform() methods, not including obsolete ones)? December 16, 2004 4:54 PM
| #XML in .NET
Comments
Well, you are right about complexity and wrong about XmlDocument. That's really another layer of confusion. Still I wonder what's wrong with this. The design seems to be okay and documentation too - there is even a dedicated page at MSDN called "XmlDocument Input to XslTransform" at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconXmlDocumentInputToXslTransform.asp which explains the stuff very well, still users have troubles. Posted by: Oleg Tkachenko at December 22, 2004 6:48 PMXmlDocument doesn't implement IXPathNavigable (XPathDocument does though). If a person is just learning XSLT, learning the MS Xml classes add another layer. That may add to the confusion. Posted by: kevin aubuchon at December 22, 2004 6:34 PMYeah, that's definitely the key trouble - the lack of association between XmlDocument and IXPathNavigable. Some people know they can get XPathNavigator from XmlDocument - so they use Oleg, As I see here people who worked long time wiht MSXML 4 API and who did not read anything about reader, writers and navigators usually cannot understand how to use XslTransform. Not too much people used input/output proerties before etc. For those people there is no any association between XmlDocument and IXPathNavigable. However, it is great push to find out which classes implemnt it. Posted by: Yuriy at December 17, 2004 12:56 PMPost a comment
|