[Home] [By Thread] [By Date] [Recent Entries]
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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <!-- End Top Header Template --> <!-- BEGIN INCLUDE --> <!-- BEGIN BOTTOM HEADER TEMPLATE --> <noscript> ....... 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
|

Cart



