Created
June 13, 2016 01:30
-
-
Save Fhernd/8e95ca6bb89617c1edd40ab151f17937 to your computer and use it in GitHub Desktop.
Aplicación basada en consola para transforma un archivo XML en HTML usando una hoja de estilos XSLT.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Xml; | |
using System.Xml.Xsl; | |
namespace Recetas.CSharp.R0612 | |
{ | |
public class XsltOrdenes | |
{ | |
public static void Main() | |
{ | |
// Crea instancia de XslCompiledTransform: | |
XslCompiledTransform transformador = new XslCompiledTransform(); | |
// Carga la hoja de estilo XSLT: | |
transformador.Load("Ordenes.xslt"); | |
// Transforma el archivo Ordenes.xml en Ordenes.html por | |
// medio de la hoja d estilo Ordenes.xslt: | |
transformador.Transform("Ordenes.xml", "Ordenes.html"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment