>...I write a transformation where in I mention this namespace as the
>value for "exclude-result-prefixes" attribute in the top level element.
>Still in the result tree I see elements under this namespace.
>I understand this is the wrong behavior. Is the problem because I am
>using <xsl:copy-of select="*"/> in the transformation?

Probably. Namespace declarations will only be excluded if they are not
used. If you want the element to be changed from "foo:a" to "a", you
cannot use copy-of because you intend to change the element name. Can
you state that you want all the names to change like that? If that is
your plan, you can use xsl:element to create a new element and assign
it a name and namespace (or no namespace).

It appears that you need to clarify the goal of the whole stylesheet,
then choose the proper instructions to make that transformation occur.
Any questions in this area would be about generic XSLT and could be
answered better by the XSL FAQ or a good book on XSLT.
.................David Marston

Reply via email to