I'm trying to write a transform to parse an html document and create another html document but I can't seem to use the html tags in the xslt.
My html source that I want to apply the transform on looks like this:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body class="3-column">
<div class="centercol"><p>Hello world</p></div>
<div class="leftcol">
<div id="menu">
</div>
</div>
<div class="rightcol"> </div>
</body>
</html>
My XSLT looks like this:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
<xsl:template match="/*">
<xsl:value-of select="body/div/p"/>
</xsl:template>
</xsl:stylesheet>
Can anyone help me figure out how to get my xpaths to work with html tags?