Altova Mailing List Archives

Re: how to remove xmlns:sql attribute?

From: "Dimitre Novatchev" <dimitren@---.---.-->
Date: 5/27/2005 6:27:00 AM
"Doug Kent" <dkent@_...> wrote in message 
> Phew, well, that works OK, but perhaps a little too well.  The match 
> pattern:
>    "*[namespace::*[. = 'urn:schemas-microsoft-com:mapping-schema']]"
> appears to be matching all elements, causing other potential 
> element-matching templates not to be invoked.

This is what you wanted -- a transformation to remove all bindings of "sql" 
to "urn:schemas-microsoft-com:mapping-schema".

In case you wanted to perform something different, you didn't let anyone on 
this list know about it.

> If I restrict the pattern to match only the xsd:schema element, which is 
> the only one I care about, then the other templates are invoked, but a 
> side-effect occurs where the xmls transform inserts the namespace 
> 'urn:schemas-microsoft-com:mapping-schema' into all the *other* elements.

How can one can guess what is the problem with code that they have not seen?

It *may* be that you need to use the "exclude-result-prefixes" attribute... 
or it may be due to bad weather... :o)

Dimitre Novatchev.

> Thanks for any suggestions!
> Doug


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.