RE: R: embedding html in xml ?

2002-10-04 Thread Luca Morandini

> -Original Message-
> From: Lorenzo De Sio [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 04, 2002 6:19 PM
> To: '[EMAIL PROTECTED]'
> Subject: R: R: embedding html in xml ?

> The key is that, I suppose,  automatically escapes any
> markup it encounters in any field, 

This makes sense :)

Best regards,

- 
   Luca Morandini 
   GIS Consultant 
  [EMAIL PROTECTED] 
http://utenti.tripod.it/lmorandini/index.html 
-
 



-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: R: embedding html in xml ?

2002-10-04 Thread Luca Morandini

Jessica & Lorenzo,

I'd like conducting a little experiment

let's suppose we have an XML like this:




well-formed http://www.apache.org";>Apache html




...and an XSL like this:

http://www.w3.org/1999/XSL/Transform";>













value-of with escaping




value-of without escaping




copy-of







..and a simple sitemap like:







...the result is that only "copy-of" respects the "tagging" of the HTML fragment.

Since I believe your method, somehow, works, could you please send me an example of 
the output of the generation step (i.e. what
your XSP page retrieves from the database) ?

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: Jessica Niewint [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 03, 2002 5:10 PM
> To: [EMAIL PROTECTED]
> Subject: Re: R: embedding html in xml ?
>
>
> 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 . 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-)
>
>
>


-
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]>




Re: R: embedding html in xml ?

2002-10-03 Thread Jessica Niewint

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 . 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:[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 test 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
>

test

> > instead of test. Or maybe I missed something :-)) > > > > > > L. > > > > > > > > >- >Please check that your question has not already been answered in the >FAQ before posting. > >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. > >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. To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>