Sorry, that was my first post. A few corrections
the data that the user uploaded is
contains bold tag at one end and not the other, this is why the xsl parser is throwing it back.
Thanks, Alan
Alan Ryan wrote:
Hi, I have a pretty specific problem. I am accepting review data from a user via a textarea. I upload this data to a db. When a request is made I ecnlose this in XML e.g.
<p>
<CONTENT><b>This is supposed to be bold </b>
<p>
I pass this to sabltron and parse it using
<p>
<xsl:template match="CONTNET>
<p>
The user wrote:
<xsl-copy-of select="."/>
</xsl:temlate>
<p>
This will cause a parse error because of the poorly formatted html code from the user, should have been: <b>this is my text</b>.
<p>
but is
<p>
The user wrote : <b>this is my text. (valid html, invalid XML/XHTML).
<p>
Is there any way that I can avoid validating the users html code while parsing so that I can get HTML code outputted to the browser, i.e. ignore the poorly formatted content within the CONTENT tag.
<p>
Al