I am writing a stylesheet to convert un-parsed HTML to XSl-FO. I will get a element that has un-parsed html. I want to load the contents of Comment
into a document variable:
<Comment><div align="left"><font size="4" color="#FF0000">This is <i><b><u>some </u></b></i>sample html again</font><br></div></Comment>
Which will look like this
<div align="left"><font size="4" color="#FF0000">This is <i><b><u>some </u></b></i>sample html again</font></div>
or formatted:
<div align="left">
<font size="4" color="#FF0000">This is <i>
<b>
<u>some </u>
</b>
</i>sample html again</font>
</div>
And try to access the elements with:
<xsl:variable name="html">
<xsl:value-of select="Comment" disable-output-escaping="yes"/>
</xsl:variable>
<xsl:value-of select="$html//b"/>
But this of course is not working. Is this possible with xslt 1.0
?
No comments:
Post a Comment