cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jessica Niewint <j.niew...@kiosco.org>
Subject Re: R: embedding html in xml ?
Date Thu, 03 Oct 2002 15:10:17 GMT
At 16.21 03/10/2002 +0200, you wrote:
>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.



Yes :-))


>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 :-))
>
  Works also for me !!!! (and I also have no idea why 8-)))))



>Cheers,
>
>L.
>
>
>-----Messaggio originale-----
>Da: Luca Morandini [mailto:luca.morandini1@tin.it]
>Inviato: giovedì 3 ottobre 2002 14.33
>A: cocoon-users@xml.apache.org
>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
>               lmorandini@ieee.org
>http://utenti.tripod.it/lmorandini/index.html
>---------------------------------------------
>
>
> > -----Original Message-----
> > From: Lorenzo De Sio [mailto:l.desio@w4b.it]
> > Sent: Thursday, October 03, 2002 2:13 PM
> > To: 'cocoon-users@xml.apache.org'
> > 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
>&lt;p&gt;test&lt;/p&gt;
> > 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:     <cocoon-users-unsubscribe@xml.apache.org>
>For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>
>---------------------------------------------------------------------
>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:     <cocoon-users-unsubscribe@xml.apache.org>
>For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message