HTML fragment from database come escaped

2004-04-16 Thread gounis
hi all

i try to post the html fragment as content  of a text area in a xsp-action 
that add this content to a database (msaccess), everything works fine and 
when i check the table's content i see the posted html fragment.

but when i use xsp to make a SELECT query, when i try to send this 
fragment to the browser, the content is escaped

so if the posted data are word instead i get a bold 
"word" i see 

"word"

because < and > came escaped.

has anyone try to do something similar?

any hint ?

thnx

--stavros



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



Re: HTML fragment from database come escaped

2004-04-16 Thread Christian Haul
[EMAIL PROTECTED] wrote:

hi all

i try to post the html fragment as content  of a text area in a xsp-action 
that add this content to a database (msaccess), everything works fine and 
when i check the table's content i see the posted html fragment.

but when i use xsp to make a SELECT query, when i try to send this 
fragment to the browser, the content is escaped

so if the posted data are word instead i get a bold 
"word" i see 

"word"

because < and > came escaped.

has anyone try to do something similar?

any hint ?
returns the value of the given column interpeted as an xml fragment.
 The fragment is parsed by the default xsp parser and the document element is returned.
 If a root attribute exists, its value is taken to be the name of an element to wrap 
around the contents of
 the fragment before parsing.

HTH
Chris.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: HTML fragment from database come escaped

2004-04-16 Thread laurent_rorive

Hi,

I also encounter the same problem and
here is what we have done :

We retrieve the HTML block and we  put
some  XML comment tag around it :

 

Then in the XSL used in the pipeline
we say :

<xsl:copy-of
select="/PAGE/BODY/CONTENT/CENTER/DESCRIPTION/comment()">xsl:copy-of>

You can use copy or value-of or... the
important is "comment()" 








[EMAIL PROTECTED]
16/04/2004 12:13
Please respond to users
        
        To:
       [EMAIL PROTECTED]
        cc:
       
        Subject:
       HTML fragment from database come escaped


hi all

i try to post the html fragment as content  of a text area in a xsp-action

that add this content to a database (msaccess), everything works fine and

when i check the table's content i see the posted html fragment.

but when i use xsp to make a SELECT query, when i try to send this 
fragment to the browser, the content is escaped

so if the posted data are word instead i get
a bold 
"word" i see 

"word"

because < and > came escaped.

has anyone try to do something similar?

any hint ?

thnx

--stavros



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




Re: HTML fragment from database come escaped

2004-04-18 Thread Amir Guindehi
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi Stavros,

| has anyone try to do something similar?

Yep!

Check:

https://open.datacore.ch/viewsvn/*checkout*/xixi/trunk/xsp/fetch-file.xsp?rev=1826

I think it does exactly what you need. I also store XML in the db and I
need it escaped AND un-escaped for XiXi, which allows to edit the stuff
in a browser.
Hope this helps you.

Regards
- - Amir
- --
Amir Guindehi, [EMAIL PROTECTED]
DataCore GmbH, Witikonerstrasse 289, 8053 Zurich, Switzerland
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2-nr1 (Windows 2000)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFAgsKabycOjskSVCwRAspOAKD37Br6qAY/G1a5F0mdLHXGnwCgywj2
p673rlAgZpMusFokE/yIV64=
=gK97
-END PGP SIGNATURE-
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]