Select the product you need help with
How to apply an XSL transformation to XML for streaming by using Visual C#Article ID: 307494 - View products that this article applies to. This article was previously published under Q307494 On This PageSUMMARY This step-by-step article shows you how to apply the
Extensible Stylesheets Language (XSL) Transformations (XSLT) language to an
Extensible Markup Language (XML) document by using the XslTransform class to create a new XML document. XSL is an XML-based language
that is designed to transform either an 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:
How to Apply XSL TransformationsThis 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\Debug folder that is located underneath the folder in which you create this project. These files can be found in the following folder:
..\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Samples\QuickStart\Howto\Samples\Xml\Transformxml\Cs
Complete Code SampleREFERENCESFor more information about the XslTransform class, visit the following Microsoft Web site:
XslTransform Class For more information about the XslTransform class with the XslTransform object, visit the following Microsoft Web site: http://msdn.microsoft.com/library/dotnet/ cpref/frlrfsystemxmlxslxsltransformclasstopic.htm
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemXmlXslXslTransformClassTopic.asp)
XslTransform Class Implements the XSLT Processor For a practical comparison of XSLT and Active Server Pages .NET,
visit the following Microsoft Web site: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ cpguide/html/cpconxsltransformclassimplementsxsltprocessor.asp?frame=true
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconxsltransformclassimplementsxsltprocessor.asp?frame=true)
A Practical Comparison of XSLT and ASP.NET For more information about XML in .NET, visit the following
Microsoft Web site: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ dnexxml/html/xml02192001.asp
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnexxml/html/xml02192001.asp)
XML in .NET: .NET Framework XML Classes and C# Offer Simple, Scalable Data Manipulation http://msdn.microsoft.com/msdnmag/issues/01/01/xml/default.aspx
(http://msdn.microsoft.com/msdnmag/issues/01/01/xml/default.aspx)
PropertiesArticle ID: 307494 - Last Review: January 11, 2007 - Revision: 7.0
| Article Translations |


Back to the top








