Article ID: 300929 - Last Review: April 26, 2006 - Revision: 5.2 How to apply an XSL Transformation from an XML document to an XML document by using Visual Basic .NETThis article was previously published under Q300929 On This PageSUMMARY This article illustrates how to apply an Extensible
Stylesheet Language (XSL) Transformation (XSLT) to an Extensible Markup
Language (XML) document using the XslTransform class to create a new XML document. XSL is an XML-based language
that is designed to transform one XML document into another XML document or an
XML document into any other structured document. RequirementsThe following list outlines the recommended hardware, software, network infrastructure, and service packs that you need:
Steps to build the sampleThis example uses two files named Books.xml and Books.xsl. You can create your own Books.xml and Books.xsl files or use the sample files that are included with the .NET Software Development Kit (SDK) QuickStarts. You must copy the Books.xml and Books.xsl files to the \Bin folder that is located underneath the folder in which you create this project. In Visual Studio .NET 2003, these files can be found in the following folder:..\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\QuickStart\Howto\Samples\Xml\Transformxml\Vb In Visual Studio .NET 2002, these files can be
found in the following folder:
..\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Samples\QuickStart\Howto\Samples\Xml\Transformxml\Vb
Complete code sampleREFERENCES For more information about the XslTransform class, see the following Microsoft .NET Framework Class Library
documentation: http://msdn.microsoft.com/en-us/library/system.xml.xsl.xsltransform(VS.71).aspx
(http://msdn.microsoft.com/en-us/library/system.xml.xsl.xsltransform(VS.71).aspx)
For more information about the XslTransform class with the XslTransform object, see the following Microsoft .NET Framework Developer's
Guide documentation: http://msdn.microsoft.com/en-us/library/aa735781.aspx
(http://msdn.microsoft.com/en-us/library/aa735781.aspx)
For a practical comparison of XSLT and ASP.NET,
see the following MSDN Online Voices Extreme XML column: http://msdn.microsoft.com/en-us/library/ms950754.aspx
(http://msdn.microsoft.com/en-us/library/ms950754.aspx)
For more information about XML in .NET, see the "XML in .NET:
.NET Framework XML Classes and C# Offer Simple, Scalable Data Manipulation"
article from MSDN Magazine at the following Microsoft Web site: http://msdn.microsoft.com/msdnmag/issues/01/01/xml/default.aspx
(http://msdn.microsoft.com/msdnmag/issues/01/01/xml/default.aspx)
For more information, refer to the following book: R. Allen Wyke, Sultan Rehman, Brad Leupen. XML Programming (Core Reference). Microsoft Press, 2001 For more information, refer to the following Microsoft Training
& Certification course:
Microsoft Corporation 2500 Introduction to XML and the Microsoft .NET Platform
(http://www.microsoft.com/learning/syllabi/en-us/2500Afinal.mspx)
| Article Translations
|
Back to the top
