Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - How to remove xmlns attribute of default namespace [Thread Next] Re: How to remove xmlns attribute of default namespaceTo: NULL Date: 4/2/2004 3:19:00 PM Martino wrote: > I need to trasform an XML document with two namespace (the default one and another one). > > But XPath 1.0 does not support node selection under deafult namspace! (is it true?) No. > I can't add prefix to the document nodes . How can I transform my document? Declare the namespace in the XSLT code, then use the prefix in the XPath expressions. > If I remove xmlns attibute from XSL default namespace, transformation works correctly. > > In order to remove the xmls attribute, at the moment I use xml document as string and use replace function. Is there a less awkward method? Yes, don't touch the input. Just fix your stylesheet. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
