I have a call to a database that returns XML that I transform with XSL to output HTML. The contents of the XML may contain HTML tags like this:
<Node>
<Text>Hello <b>World</b> <a href="#">Click here</a></Text>
</Node>
In my XSL I'm trying to do a <xsl:value-of select="/Node/Text"/> that will apply the HTML tags. If I use <xsl:copy-of select="/Node/Text"/> I get the desired results except the actual node "<Text>" gets outputted. Is there a way to produce the following output?
<html>
<body>
Hello <b>World</b> <a href="#">Click here</a>
</body>
</html>
and not this output?
<html>
<body>
<Text>Hello <b>World</b> <a href="#">Click here</a></Text>
</body>
</html>
<Node>
<Text>Hello <b>World</b> <a href="#">Click here</a></Text>
</Node>
In my XSL I'm trying to do a <xsl:value-of select="/Node/Text"/> that will apply the HTML tags. If I use <xsl:copy-of select="/Node/Text"/> I get the desired results except the actual node "<Text>" gets outputted. Is there a way to produce the following output?
<html>
<body>
Hello <b>World</b> <a href="#">Click here</a>
</body>
</html>
and not this output?
<html>
<body>
<Text>Hello <b>World</b> <a href="#">Click here</a></Text>
</body>
</html>