Subject: Re: [xsl] Namespace getting carried over to output XML From: "J.Pietschmann" <j3322ptm@xxxxxxxx> Date: Tue, 11 Jul 2006 22:51:52 +0200 |
Hi, I tried to apply a xsl on a xhtml document and once it passes through the xsl, I am getting the namespace carried over to my output xhtml document in places unnecessary. Below is an example.
I have given the following line when I start my XSL
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform " xmlns:xhtml="http://www.w3.org/1999/xhtml " xmlns=" http://www.w3.org/1999/xhtml" xmlns:abc="abctest" exclude-result-prefixes="abc">
In the exclude-result-prefixes you should provide the prefixes you *don't* want to have in the result, rather then prefixes bound to namespaces you actually use in the result. Try something like
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xmlns:abc="abctest" exclude-result-prefixes="xhtml"> ^^^^^
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Namespace getting carried ove, Prashanth T S | Thread | [xsl] Namespace getting carried ove, Prashanth T S |
RE: [xsl] Procesing XHTML files wit, Hood, Earl | Date | Re: [xsl] Keeping a running total? , didoss |
Month |