[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] exclude-result-prefixes
Subject: [xsl] exclude-result-prefixes From: Arulraj <p_arulraj@xxxxxxxxx> Date: Mon, 24 Apr 2006 08:07:56 +0100 (BST) |
Hi, I have following XSL, <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" exclude-result-prefixes="h f"> <xsl:variable name="JSFHeadertxt" select="document('../../../config/jsfheader.xml')"/> <xsl:output method="html" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/> <xsl:template match="/"> <xsl:call-template name="JSFHeader"/> <f:view> <h:form id="H2WLogin"> test </h:form> </f:view> </xsl:template> <xsl:template name="JSFHeader"> <xsl:value-of select="$JSFHeadertxt" disable-output-escaping="yes"/> </xsl:template> </xsl:stylesheet> I got the following output: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <%@ page contentType="text/html;charset=windows-1252"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <f:view xmlns:f="http://java.sun.com/jsf/core"> <h:form xmlns:h="http://java.sun.com/jsf/html" id="H2WLogin"> test </h:form> </f:view> but i need the following output: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <%@ page contentType="text/html;charset=windows-1252"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <f:view> <h:form id="H2WLogin"> test </h:form> </f:view> How to suppress the namespace of f and h in the result tree? regards, Raj __________________________________________________________ Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] 1 + 1 = 11, Wendell Piez | Thread | RE: [xsl] exclude-result-prefixes, Florent Georges |
Re: [xsl] Can't have both " an, G. Ken Holman | Date | RE: [xsl] exclude-result-prefixes, Florent Georges |
Month |
Keywords