Re: [xsl] How to insert a snippet of XSD into HTML using serialize(), without the result containing a bunch of namespaces? Way to suppress the output of namespace declarations?

Subject: Re: [xsl] How to insert a snippet of XSD into HTML using serialize(), without the result containing a bunch of namespaces? Way to suppress the output of namespace declarations?
From: "Costello, Roger L. costello@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 12 Jun 2015 13:28:09 -0000
Martin Honnen wrote:

	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.

Yes!

That did it. Here's how it now appears in the HTML:

<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema";
                          name="Title"
                          type="xs:string"
                          minOccurs="0"/>

Thanks Martin and Ken!

/Roger

Current Thread