[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

How to disable output escaping in result

Subject: How to disable output escaping in result
From: "Saugat Roy" <learningxsl@xxxxxxxxxxx>
Date: Tue, 16 Apr 2002 15:36:33 -0700
saugat roy
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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.