Luca, I'm sure you're right with the specification. I was just sharing a humble real life example.
I actually have an XSP containing <esql:get-columns/>. One of the columns contains HTML (which BTW most of the times isn't even well-formed at all :-)), as I guessed in Jessica's case. If I don't put any disable-output-escaping="yes" I get the whole markup escaped and visible to the user. That's why I disable it, and get a nice page fragment as designed by who put the HTML in the DB. This works to me, even if sincerely I don't know why :-)) Cheers, L. -----Messaggio originale----- Da: Luca Morandini [mailto:[EMAIL PROTECTED]] Inviato: giovedì 3 ottobre 2002 14.33 A: [EMAIL PROTECTED] Oggetto: RE: embedding html in xml ? Lorenzo, quoting from the "XSLT 1.0 - W3C Recommendation 16 November 1999": "The xsl:value-of element is instantiated to create a text node in the result tree. The required select attribute is an expression; this expression is evaluated and the resulting object is converted to a string as if by a call to the string function." Therefore, every tag in the "select" expression is deleted, only the text remains: try converting, say, "aaa <p>test</p> bbb" with and without the "disable-output-escaping", the result will always be "aaa test bbb". Think of "xsl:value-of" as an flattener of XML elements :) Best regards, --------------------------------------------- Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html --------------------------------------------- > -----Original Message----- > From: Lorenzo De Sio [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 03, 2002 2:13 PM > To: '[EMAIL PROTECTED]' > Subject: R: embedding html in xml ? > > > Luca, > > I agree it converts them to plain text anyway, but since this text is HTML, > I guess it's much different having it serialized as <p>test</p> > instead of <p>test</p>. Or maybe I missed something :-)) > > > L. > > > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.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/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>