Write a program to show the purpose of literal result element? - XSLT

Write a program to show the purpose of literal result element?



- The literal result element is used to provide the document element for a stylesheet and it uses the xsl:version attribute.

- The attribute indicates the version of the XSLT that require the stylesheet and its own version.

- The program that shows the version and the links that is required to show the use of literal result element.

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/TR/xhtml1/strict">
<xsl:template match="/">
<html>
<head>
<title>Hello world</title>
</head>
<body>
<p>Hello: <xsl:value-of select="world/total"/></p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Post your comment