1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| <?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:lxslt="http://xml.apache.org/xslt"
version="1.0">
<xsl:output method="html" indent="yes" encoding="UTF-8"/>
<xsl:template match="/">
<html>
<title>Test</title>
<head>
</head>
<body>
Message
Date : <xsl:value-of select="SYSLOG/message[@date]"/>
Host : <xsl:value-of select="SYSLOG/message[@host]"/>
Severity: <xsl:value-of select="SYSLOG/message[@severity]"/>
Value : <xsl:value-of select="SYSLOG/message[@value]"/>
</body>
</html>
</xsl:copy>
</xsl:template>
<xsl:apply-templates select="/" />
</xsl:stylesheet> |