S
Son KwonNam
When I have XML text data like the following..
------ XML Snippet -----
<TEXT>
Hello,
XML & Java Newsgroup!
</TEXT>
------------------------
I hope to get the following html
------- HTML Sinppet -----
Hello,<BR/>
XML & Java Newsgroup!<BR/>
--------------------------
I tried a java extension, which just replaces &,whitespace and new
line(\n) to their corresponding html elements
then, get the text from the method with
<xsl:value-of select="tth:textToHtml(.)"/>
But failed, because Xalan prints html like
-------------------------
Hello,<BR/>
XML&nbsp;&amp;&nbsp;Java&nbsp;Newsgroup!<BR/>
--------------------------
I use Xalan for transforming.
How can I get the correct html from xml text?
Regards,
KwonNam.
------ XML Snippet -----
<TEXT>
Hello,
XML & Java Newsgroup!
</TEXT>
------------------------
I hope to get the following html
------- HTML Sinppet -----
Hello,<BR/>
XML & Java Newsgroup!<BR/>
--------------------------
I tried a java extension, which just replaces &,whitespace and new
line(\n) to their corresponding html elements
then, get the text from the method with
<xsl:value-of select="tth:textToHtml(.)"/>
But failed, because Xalan prints html like
-------------------------
Hello,<BR/>
XML&nbsp;&amp;&nbsp;Java&nbsp;Newsgroup!<BR/>
--------------------------
I use Xalan for transforming.
How can I get the correct html from xml text?
Regards,
KwonNam.