Transforming XML documents using XSLT

Transforming XML documents using XSLT can be done in many ways. Whatever be the method to transform an XML document you have to create an XSL file for the transformation.

_______________________________________________


_______________________________________________

Using tools meant for that purpose will speed up your development process. Once you have our XSL in place, you can write the code to do the transformation.

In ASP.Net you have System.Xml, System.Xml.Xsl, and System.Xml.Xpath for this purpose. You can use the classes available in these namespaces to do the transformation. You can create an XslTransform object and use the Load method of that object to load the XSL document into it.

Then use the Transform method available to do the transformation of the source XML file to the resulting document.

To do a simple transformation, you can even include the XSL file in the XML document itself by using the "xml-stylesheet" tag which takes the XSL file as one of the values of the attributes. Once you set it you can simple open the XML file to see the transformation done by the browser itself.



FREE Subscription

Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.

Name:
Email:

Note : We never rent, trade, or sell my email lists to
anyone. We assure that your privacy is respected
and protected.

_______________________________________

Recommended XML Books

cover
cover
cover
cover
cover
cover





 

 

FREE Subscription

Stay Current With the Latest Technology Developments Realted to XML. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.

 

 

Add to My Yahoo!


New XML Books Titles - Best Seller's @ Amazon.com

Visit XML Training Material Guide Homepage

Technology helps engage students - how do classroom instruction and social dynamics change when the classroom is completely dependant on modern technology?

Cisco CCNA Certification Video Tutorial Guide - Learn How to Pass the Cisco CCNA 640-802 Exam... Guaranteed!

Train Signal Computer Training