This is a general XSLT question and is best asked on the Mulberry XSL list.
If you search the Mulberry archives for "disable-output-escaping", you'll
find lots of information about why this is difficult, if not impossible to
do, and also why it's just a bad idea to embed markup within a string in
XSLT.

You should consider putting this "parameter" in a file and retrieving it
with the document function, or pre-parsing it yourself and passing it in as
nodes.  If it's ill-formed, you could "tidy" it up before using it -- the
serialization process will turn it back into HTML.

Dave



                                                                                       
                                                           
                      [EMAIL PROTECTED]                                                 
                                                           
                      com                      To:      [EMAIL PROTECTED]       
                                                           
                                               cc:      (bcc: David N 
Bertoni/Cambridge/IBM)                                                      
                      03/14/2002 07:50         Subject: displaying an html String      
                                                           
                      AM                                                               
                                                           
                      Please respond                                                   
                                                           
                      to xalan-dev                                                     
                                                           
                                                                                       
                                                           
                                                                                       
                                                           



Hi there,

 is there any way to prevent a stylesheet global parameter String from
having its characters escaped?
I am trying to "display" the value of such a paramater (which is html).

so the value I'm setting could be:

new String("<a href="foo">fi</a>");

but the < is being turned into &lt; and the > into &gt;

thanks for your help.
Hanaa Barakat


"The best laid plans of mice and men oft' gang aglay..."
-Robert Burns







Reply via email to