preventing xml namespaces passing to children -


I have an XSL: Stylesheet element has a bunch of namespaces, how can I stop the namespace from reflection of children? Let me say I generate something like this:

For example:

  & lt; Xsl: stylesheet xmlns: a = "aaa" xmlns: b = "bbb" & gt; & Lt; / XSL: stylesheet & gt; & Lt; Results xmlns: a = "aaa" xmlns: b = "bbb" & gt; & Lt; Child1 & gt; & Lt; Gchild11 & gt; & Lt; / Gchild11 & gt; & Lt; / Child1 & gt; & Lt; Child2 & gt; & Lt; / Child2 & gt; & Lt; Child3 & gt; & Lt; / Child3 & gt; & Lt; / Results & gt;  

Now, when I bring a special child from the tree, how can I stop the name space from being passed?

That is, I should get:

  & lt; Child3 & gt; & Lt; / Child3 & gt;  

no more

  & lt; Child3 xmlns: a = "aaa" xmlns: b = "bbb" & gt; & Lt; / Child3 & gt;  

Thanks, Aditya

Add the following to your declaration:

  out-result-prefix = "now"  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -