> I'm writing an xslt in vs.net 2003 and in order to get intellisense on
> the html content I added the default namespace declaration
[quoted text clipped - 4 lines]
> <?xml version="1.0" encoding="UTF-8" ?>
> <xsl:stylesheet
> xmlns="http://schemas.microsoft.com/intellisense/ie5"
> xmlns:msxsl="urn:schemas-microsoft-com:xslt"
[quoted text clipped - 5 lines]
>
> <div>
This means that div result element for instance is in that namespace
with URI http://schemas.microsoft.com/intellisense/ie5 and has to be output
> <div xmlns="http://schemas.microsoft.com/intellisense/ie5">
> </div>
that way, whether you use exlucde-result-prefixes or not.
Exclude-result-prefixes does not strip any result elements or attributes
of their namespace, it only helps to avoid namespace declarations in the
output for namespaces not used with result elements or attributes (but
rather in XPath expressions or match patterns).

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Samuel R. Neff - 20 Jul 2006 15:33 GMT
So if exclude-result-prefixes won't strip out the ns what will?
Thanks,
Sam
>Exclude-result-prefixes does not strip any result elements or attributes
>of their namespace, it only helps to avoid namespace declarations in the
>output for namespaces not used with result elements or attributes (but
>rather in XPath expressions or match patterns).
Martin Honnen - 20 Jul 2006 16:10 GMT
> So if exclude-result-prefixes won't strip out the ns what will?
If you don't want an element to have a namespace then don't use one on it.
If you need it for your tool then with XSLT I only see a way if you run
a second transformation which strips that namespace from elements e.g.
<xsl:template
xmlns:ie="http://schemas.microsoft.com/intellisense/ie5"
match="ie:*">
<xsl:element name="{local-name()}" namespace="">
<xsl:apply-templates select="@* | node()" />
</xsl:element>
</xsl:template>

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Samuel R. Neff - 20 Jul 2006 16:25 GMT
Thanks.
>> So if exclude-result-prefixes won't strip out the ns what will?
>
[quoted text clipped - 8 lines]
> </xsl:element>
> </xsl:template>