Write a program to show Literal Result Element as Stylesheet? - XSLT

Write a program to show Literal Result Element as Stylesheet?



- The stylesheets consist of a single template that can be considered for the root node.

- The stylesheet can also consist of the literal result element that provides the output of the search made for a particular element.

- The stylesheet is equivalent to the stylesheet being made using the xsl:stylesheet element that consists of the template rule and the element.

- The template rule describes to have a pattern match for the root node and the displaying properties of it.

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