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 strongword/strong instead i get a bold 
word i see 

strongword/strong

because  and  came escaped.

has anyone try to do something similar?

any hint ?
xspdoc:descreturns 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./xspdoc:desc
xsl:template match=esql:row-results//esql:get-xml|esql:call-results//esql:get-xml
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 :

!-- 
P class=txt_wSTRONGMarine
Power Europe, Inc/STRONG.BRis a subsidiary of Mercury Marine
USA, which is a division of Brunswick Corporation./P
P class=txt_wIt's a leader in the manufacture, distribution and
sales of recreational and comm/P
P class=txt_wcommercial marine products throughout Europe, Africa,
the Middle East and CIS./P
P class=txt_wMarine Power Europe, the international one-stop-shop
for all that is best in pleasure boats and marine engines. /P
PSPAN class=txt_wTop brands: STRONGMercury, Mariner,
MerCruiser, MotorGuide, Quicksilver, Arvor, Uttern and Valiant/STRONG/SPAN
BR/P

-- 

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 strongword/strong instead i get
a bold 
word i see 

strongword/strong

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]