I can think of a couple of things: 1) You can use the "disable-output-escaping" attribute of the xsl:text element (set to no, the default) to write the data
2) You can wrap the data in CDATA sections either by manually embedding CDATA tags or specifying the "cdata-section-elements" attribute of the xsl:output element. 3) Call a template that escapes special characters. --- Marco Mistroni <[EMAIL PROTECTED]> wrote: > > Hello, > Pls don't consider my prev question..... it was my > mistake.. > I m using XSLT before I use castor, and whenever > there is an '&', for > example, I cannot even pass XSLT... > > It's more or like an XSLT problem rather than > castor.... > I appreciate however any suggestions... > > Regards > marco > > -----Original Message----- > From: Marco Mistroni > [mailto:[EMAIL PROTECTED] > Sent: 23 September 2004 09:17 > To: [EMAIL PROTECTED] > Subject: [castor-user] URGENT! how to escape > 'special characters' with > castor XML? > > > Hello all, > I have an urgent problem... I am using Castor for > XML 2 java > binding, and the returned XML get messed up whenever > I have characters > like '?', or '&' ... > > Can anyone help me out in finding out how to avoid, > or to escape those > special characters? > > With best regards > Marco > > > > ----------------------------------------------------------- > > If you wish to unsubscribe from this mailing, send > mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-user > > > > ----------------------------------------------------------- > > If you wish to unsubscribe from this mailing, send > mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-user > ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-user
