Subject: RE: [xsl] amp From: "Yates, Danny (ANTS)" <danny.yates@xxxxxxxxxx> Date: Fri, 27 Sep 2002 09:56:16 +0100 |
Hi, If your database claims to be generating XML for you, then it should escape the & sign for you. (As well as a few others, such as < and >). If it is not doing this, it is NOT generating XML, and you should take this up with the database vendors. If you are generating XML from, say, a stored procedure, then you need to change the code in the stored procedure. If you are generating XML from, say, a data access object, then you need to change the code in the data access object. If no other process uses the data, then maybe you can change the process that the users work with so that it escapes the data on the way IN to the database. Regards, Dan. -- Danny Yates Technical Architect Abbey National Treasury Services E-mail: Danny.Yates@xxxxxxxxxx Phone: +44 20 7612 4017 Fax: +44 20 7612 4342 -----Original Message----- From: Stevenson Ngila [mailto:Stevenson@xxxxxxxxxxxxxxxxxxxxxx] Sent: 27 September 2002 09:24 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] amp The data come from the DB, and it's the user who feed the DB hence can not control user from using '&'. Is there a way of escaping this character if the data comes from the DB? I have resaerched all over on the internet but have not gotten an appropriate explaination. It tells me to use '&' but this data comes from the DB, how can i pick all '&' and trasform them in to '&'. Please assist, it's this discussion i mostly rely on in terms of knowledge -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Michael Kay Sent: 26 September 2002 19:33 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] amp > I have a database driven intranet which uses XSLT to format > the XML files. it crashes when it encounters '&'. How can i > stop this from happening? > > Change the software that's generating the XML so that the XML it produces is well-formed. *************************************************************************** This communication (including any attachments) contains confidential information. If you are not the intended recipient and you have received this communication in error, you should destroy it without copying, disclosing or otherwise using its contents. Please notify the sender immediately of the error. Internet communications are not necessarily secure and may be intercepted or changed after they are sent. Abbey National Treasury Services plc does not accept liability for any loss you may suffer as a result of interception or any liability for such changes. If you wish to confirm the origin or content of this communication, please contact the sender by using an alternative means of communication. This communication does not create or modify any contract and, unless otherwise stated, is not intended to be contractually binding. Abbey National Treasury Services plc. Registered Office: Abbey National House, 2 Triton Square, Regents Place, London NW1 3AN. Registered in England under Company Registration Number: 2338548. Regulated by the Financial Services Authority (FSA). *************************************************************************** XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] amp, Jarno . Elovirta | Thread | RE: [xsl] amp, Jarno . Elovirta |
RE: [xsl] Formatted output, Satish, L. Gnanendra | Date | [xsl] getting all nodes from a cert, Peter Menzel |
Month |