Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - default namespace and xmlns="" [Thread Next] Re: default namespace and xmlns=""To: NULL Date: 10/4/2004 11:03:00 AM
<?xml version="1.0" standalone="yes"?>
<x xmlns:ns1="abc">
<y xmlns="abc">
<z xmlns="">hello</z>
</y>
</x>
my question is this. is it possible to remove the xmlns="" bit without
having to use <ns1:z> in the xslt?
You probbaly want to generate z in the namespace abc which you could do
in the xsl by using
<z xmlns="abc">
Usuallly you put such a result namespace declaration on your
xsl:stylesheet element then it's in scope for the whole stylesheet and
would mean you could replace
<xsl:element name="y" namespace="abc">
by
<y>
and just use <z> to generate z.
If you really want x to be in no-namespace you could do
<xsl:element name="x" namespace="">
David
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
