1 / 11

X S L T

X S L T. Juan Carlos Alonso Tecnet Consultores. Para que sirve XSLT ?. Documentos XSLT ( Extensible Stylesheet Transformations) es tecnología para procesar documentos XML Herramienta de traduccion XML -> HTML, WAP, PDF, Audio… XSLT = conversión de datos entre aplicaciones.

yardan
Télécharger la présentation

X S L T

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. X S L T Juan Carlos Alonso Tecnet Consultores

  2. Para que sirve XSLT ? • Documentos XSLT (Extensible Stylesheet Transformations) es tecnología para procesar documentos XML • Herramienta de traduccion XML -> HTML, WAP, PDF, Audio… • XSLT = conversión de datos entre aplicaciones

  3. Para que sirve XSLT ? Es un lenguaje para transformar la estructurade un documento XML

  4. Transformación XSLT • Transformacion estructural • Formato (pdf, html, etc.)

  5. Transformación XSTL … • Transformacion estructuralLos datos son convertidos de la estrucutra de entrada (xml) a una estructura que refleje la salida deseada

  6. Transformación XSTL … • Formato (pdf, html, etc.)La salida de datos, generados por la nueva estructura se entrega en el formato requerido (PDF, HTML,coma-delimitado)

  7. tabla.xsl barra.xsl arte.xsl

  8. ie5.xslie4.xslnav3.xsl nokia.xslsony.xsl edi_x.xslsap_y.xslflat_z.xsl

  9. XSLT – Documento XML <?xml version="1.0" encoding="iso-8859-1"?> <?xml-stylesheet type="text/xsl" href="hola.xsl"?> <saludo>Hola, mundo!</saludo>

  10. XSLT – Hoja de Estilo <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <head><title>Un Saludo</title></head> <body> <p><font color="red“ face=“arial”><strong> <xsl:value-of select="saludo"/> </strong></font></p> </body> </html> </xsl:template> </xsl:stylesheet>

  11. Procesadores XSLT • Aplicación de una hoja de estilo a una fuente XML para producir una salida • MSXML3 SP4 (Internet Explorer)http://www.microsoft.com/xml • Saxonhttp://users.iclway.co.uk/mhkay/saxon/ • Xalanhttp://xml.apache.org/xalan/overview.html

More Related