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 namespace Re: How to remove xmlns attribute of default namespaceTo: NULL Date: 4/2/2004 3:23: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?) You have to declare a prefix for that namespace, then XPath knows about it e.g. <xsl:stylesheet xmlns:somePrefix="http://example.com/2004/04/02" ...> <xsl:template match="somePrefix:elementName"> That way you can match <elementName xmlns="http://example.com/2004/04/02"> -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
