[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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: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
Can someone tell me how to prevent this from hapening?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
[xsl] How to disable output escaping in result
Subject: [xsl] How to disable output escaping in result From: "Saugat Roy" <learningxsl@xxxxxxxxxxx> Date: Tue, 16 Apr 2002 15:36:33 -0700 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Calculating Multiple Subtotal, David Messing 477-1 | Thread | [xsl] mysterious  character inser, Jacob P. Glenn |
Re: [xsl] applying same XSL to diff, Matt Gushee | Date | [xsl] sum for a specific attribute, Charly |
Month |
Keywords