I have a soap input document as follows:
...
I am trying get just the soap body elements out via XSLT, but I always get
the soap ns on the justiceXML element (the first body element). My style
sheet is as follows:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl=http://www.w3.org/1999/XSL/Transform
exclude-result-prefixes="soap-env">
<xsl:output method="xml" />
<xsl:template match="justiceXML">
<xsl:copy-of select="." />
</xsl:template>
</xsl:stylesheet>
...
Question: is there a way to supress the soap namespace from the output?
Yes, by regenerating all elements found that are not in the soap namespace,
because all elements in the instance have attached namespace nodes from all
ancestral namespace declarations and your stylesheet's act of copying the
elements from the source node tree to the result node tree is carrying
along the unwanted namespace nodes.