Skip to content

Instantly share code, notes, and snippets.

@sangimed
Last active March 7, 2016 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sangimed/0894711e56c063e9bc9a to your computer and use it in GitHub Desktop.
Save sangimed/0894711e56c063e9bc9a to your computer and use it in GitHub Desktop.
XML to HTML (TP3LW2)
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Root element -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Output element -->
<xsl:output
method="html"
encoding="UTF-8"
doctype-public="-//W3C//DTD HTML 4.01//EN"
doctype-system="http://www.w3.org/TR/html4/strict.dtd"
indent="yes" />
<xsl:template match="/">
<html>
<head>
<title><xsl:value-of select="p:stb/title"></xsl:value-of></title >
</head>
<body>
<p>Version :<xsl:value-of select="p:stb/version"></xsl:value-of></p>
<p>Date :<xsl:value-of select="p:stb/date"></xsl:value-of></p>
<p>Description :<xsl:value-of select="p:stb/description"></xsl:value-of></p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment