You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Leena <l_...@yahoo.com> on 2002/02/07 06:40:42 UTC

Parsing problem

> Hi All,
>
> I am using SAXParser for parsing my xsl file. But for some .xsl files, I
am
> getting some junk characters in the source. My xsl file is as follows:
>
> <?xml version="1.0" ?>
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:output method="html" omit-xml-declaration="yes"/>
> <xsl:template match="XMLMessage">
>
> <XMLMessage>
> <xmlMessageFrom><xsl:value-of select="xmlMessageFrom"/></xmlMessageFrom>
> <xmlMessageTo><xsl:value-of select="xmlMessageTo"/></xmlMessageTo>
> <xmlMessageSubject>Appointment Confirmation</xmlMessageSubject>
>
> <xmlMessageBody>
> <HTML>
> <HEAD>
> </HEAD>
> <BODY>
>
> <table border="0" width="100%" height="392">
> <tr>
> <td width="100%" colspan="2" height="18"><font face="Arial" size="2">Dear
> <xsl:value-of select="FirstName"/> <xsl:value-of
> select="LastName"/>,</font></td>
> </tr>
>
> <tr>
> <td width="100%" colspan="2" height="1"><font face="Arial"
> size="2"></font></td>
> </tr>
>
> <tr>
> <td width="100%" colspan="2" height="18"><font face="Arial" size="2">Thank
> you for using our service.</font></td>
> </tr>
> </table>
>
> </BODY>
> </HTML>
>
> </xmlMessageBody>
> </XMLMessage>
>
> </xsl:template>
> </xsl:stylesheet>
>
>
> And the xml I will creating will be like this:
>
> <XMLMessage>
> <xmlMessageFrom>abc@abc.com</xmlMessageFrom>
> <xmlMessageTo>abc@xyz.com</xmlMessageTo>
> <FirstName>ABC</FirstName>
> <LastName>XYZ</LastName>
> </XMLMessage>
>
> Parsing and all is done properly, and it is generating the html also. But
> the html file looks weird and the source of it looks like this:
>
>
> <HTML>
> <BODY>
>
> <table border=3D"0" width=3D"100%">
> <tr>
> <td width=3D"100%" colspan=3D"2"><font face=3D"Arial" size=3D"2">Dear A=
> BC=A0XYZ,</font></td>
> </tr>
>
> <tr>
> <td width=3D"100%" colspan=3D"2"><font face=3D"Arial" size=3D"2">
> Thank you for using our service.</font></t=
> d>
> </tr>
> </table>
>
> </BODY>
> </HTML>
>
> Can anyone tell me how this extra characters like 3d, A0, = are generated?
> Character =20 is also displayed. Can anyone please help me? You can mail
me
> at leenasn@hotmail.com.
>
> Thanks in advance
>
> Leena
>



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com