Costello, Roger L. costello(_at_)mitre(_dot_)org wrote:
Is there a serialization parameter to suppress the output of namespace
declarations?
What is the solution to this problem?
You can try to make a copy first e.g.
<xsl:variable name="dec1" as="element(xs:element)">
<xsl:copy-of select="//xs:element[@name eq 'Title']"
copy-namespaces="no"/>
</xsl:variable>
and then serialize the copy but I think the namespace declaration for
the schema namespace can't be eliminated that way. The serialization is
supposed to create namespace well-formed XML and serializing a name
"xs:element" without binding the prefix "xs" to its namespace would
result in malformed XML.
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--