home *** CD-ROM | disk | FTP | other *** search
/ ftp.tcs3.com / ftp.tcs3.com.tar / ftp.tcs3.com / DRIVERS / Audio / Office2010 / InfoPath.en-us / InfLR.cab / FL_TransformXMLusingXSLTintoHTML_snippet_142742_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2008-09-17  |  2KB  |  51 lines

  1. ∩╗┐<?xml version="1.0" encoding="UTF-8"?>
  2. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  3.   <CodeSnippet Format="1.0.0">
  4.     <Header>
  5.       <Title>Transform XML into HTML using XSLT</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Transforms XML into HTML using XSLT.</Description>
  8.       <Shortcut>xmlXslt</Shortcut>
  9.     </Header>
  10.     <Snippet>
  11.       <References>
  12.         <Reference>
  13.           <Assembly>System.Xml.dll</Assembly>
  14.           <Url />
  15.         </Reference>
  16.       </References>
  17.       <Imports>
  18.         <Import>
  19.           <Namespace>System.Xml.Xsl</Namespace>
  20.         </Import>
  21.       </Imports>
  22.       <Declarations>
  23.         <Literal>
  24.           <ID>xslt</ID>
  25.           <Type />
  26.           <ToolTip>Replace with path to XSLT file.</ToolTip>
  27.           <Default>"theXsltFile.xslt"</Default>
  28.           <Function />
  29.         </Literal>
  30.         <Literal>
  31.           <ID>xml</ID>
  32.           <Type />
  33.           <ToolTip>Replace with path to XML file.</ToolTip>
  34.           <Default>"theXmlFile.xml"</Default>
  35.           <Function />
  36.         </Literal>
  37.         <Literal>
  38.           <ID>output</ID>
  39.           <Type />
  40.           <ToolTip>Replace with output filename.</ToolTip>
  41.           <Default>"theOutputFile.html"</Default>
  42.           <Function />
  43.         </Literal>
  44.       </Declarations>
  45.       <Code Language="VB" Kind="method body"><![CDATA[Dim xslt As New XslCompiledTransform
  46.  
  47.         xslt.Load($xslt$)
  48.         xslt.Transform($xml$, $output$)]]></Code>
  49.     </Snippet>
  50.   </CodeSnippet>
  51. </CodeSnippets>