I've the next xml file: <?xml version="1.0" encoding="ISO-8859-1"?> <PETICIO> <PRU COD="1121-1" DESC="Sodi" RESU="138" UNI="mmol/l" VREF="(<145)" /> <PRU COD="1122-1" DESC="Potassi" RESU="4,23" UNI="mmol/l" VREF="(>5,10)" /> <PRU COD="1124-1" DESC="Calci" RESU="2,39" UNI="mmol/l" VREF="(<2,55)" /> <PRU COD="1126-1" DESC="Fosfat inorgānic" RESU="1,24" UNI="mmol/l" VREF="(<1,45)" /> <PRU COD="1191-1" DESC="Glucosa" RESU="10,6" UNI="mmol/l" VREF="(3,9-6,4)" /> <PRU COD="1202-1" DESC="Urea" RESU="9,0" UNI="mmol/l" VREF="(1,7-8,3)" /> </PETICIO>
I would to know if it's possible to change the VREF values (I'm getting an error of <), I would to change the < for <, before to apply an xsl stylesheet... Is that possible ? ----- Original Message ----- From: "Geert Pante" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 26, 2002 1:30 AM Subject: Re: Special Characters > 25/01/2002 6:16:19, Martin Holz <[EMAIL PROTECTED]> wrote: > > >Geert Pante wrote: > >> 25/01/2002 3:27:39, "Ferran Urgell" <[EMAIL PROTECTED]> wrote: > >> > Hola Cocooners! > >> > > >> > I've generated some xml files from a database, but the xml files are > >> > containing some special characters like < > ; etc...and before to use > >> > with an xsl, I would to change the xml to a another valid xml.... > >> > >> there are 2 solutions: > >> 1: replace < by <, & by &, > by >, ' by ' > >> 2: embed your strings in CDATA sections: <![CDATA[ string.... ]]> > >> > > > >How do I do it the other direction? Most browser don't like < in > >javascript and a CDATA section is even worse. > > > > Disable output escaping is the solution, for example somewhere in your XSLT: > > <xsl:value-of select="text()" disable-output-escaping="yes"/> > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>