Hello there!
I have a couple of questions about generating HTML using an XSLT Stylesheet.
I use the System.Xml and System.Xml.Xsl namespaces and a XslTransform object
to make the transformation, as follows:
xsltTemplate.Transform(xmlOutput.CreateNavigator, Nothing,
xmlWriter, Nothing)
The XSLT template I use is this one:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="html">
<span>Welcome to the NEXT LEVEL!</span><br/>
<xsl:copy-of select="select"/><br/>
<xsl:copy-of select="div/a"/><br/>
<span>Welcome to the NEXT LEVEL!</span>
<a href="Home.aspx?id=a&id2=b" at="at">a</a>
<br/>
<!--<xsl:text> </xsl:text>-->
</xsl:template>
</xsl:stylesheet>
I need that the HTML Output includes the HTML entity but instead it
outputs a string. Also I want to write the href attribute of the <a>
elements on the xstl stylesheet without the need of the & XML entity in as
parameter separator like this: page.aspx?a=1&b=2 instead of this:
page.aspx?a=1&b=2
I've already tried adding the <xsl:output> element with the HTML method, but
I get the same resutls.
Thanks for your help.