Sorry. I'd didn't read your message carefully before responding.
--
Charles Knell
cknell(_at_)onebox(_dot_)com - email
-----Original Message-----
From: cknell(_at_)onebox(_dot_)com
Sent: Mon, 12 May 2003 07:32:26 -0500
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Avoid copying of namespace declarations of the XSL
Add this attribute to your stylesheet element:
exclude-result-prefixes=" ...". Replace the elipsis with a whitespace-separated
list of namespace prefixes you want to remove from the result tree.
--
Charles Knell
cknell(_at_)onebox(_dot_)com - email
-----Original Message-----
From: Ram UGroups <ram_ugroups(_at_)yahoo(_dot_)com>
Sent: Sun, 11 May 2003 21:20:28 -0700 (PDT)
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Avoid copying of namespace declarations of the XSL
Hello,
Is there a way to avoid getting the namespace
definitions copied into the result xml file using XSLT
? I have read lots of threads on here about a similar
problem but in all those cases, the input xml file had
namespace declarations which were being copied over
and <xsl:copy-of> was copying the whold node including
the namespace nodes.
But in my case, the input xml file does not have any
namespace declarations. I have a few namespace
declarations and adding some attributes in those
namespaces. Elements which have these attributes are
also getting the corresponding namespace declarations
copied over even though I have
"exclude-result-prefixes" attribute in the
<xsl:stylesheet> element.
Appreciate your help.
--Ram.
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list