This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to disable output escaping in result


Hi,

I am using Apache xalan and am trying to use namespace extension to supply a 
html snippet to the result tree. The xsl looks as below
<?xml version="1.0"?>
<xsl:stylesheet
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
   version="1.0"
   xmlns:lxslt="http://xml.apache.org/xslt";
   xmlns:header="appsui.xslextension.AppHeader"
   extension-element-prefixes="header">

   <xsl:output method="html"/>
   <lxslt:component prefix="header" elements="init getHeader">
      <lxslt:script lang="javaclass"
       src="xalan://appsui.xslextension.AppHeader"/>
   </lxslt:component>

   <xsl:template match="/">
      <header:init appName="FooTemplates"
         entitlementLevel="4"
         country="us"
         language="en"
         loggedIn="true"
         refresh="false"
         isChild="false" />
      <header:getHeader/>
      <xsl:apply-templates/>
   </xsl:template>

</xsl:stylesheet>

This works just as I expect it to and returns a html string back. But my 
problem is that when rendering it out finally it escapes all the "<" and ">" 
in the html string and hence I end up getting something like the following

&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;!-- End Top Header Template --&gt;
&lt;!-- BEGIN INCLUDE --&gt;
&lt;!-- BEGIN BOTTOM HEADER TEMPLATE --&gt;
&lt;noscript&gt;
.......

Can someone tell me how to prevent this from hapening?

Thanks
Saugat

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]