[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How to insert a snippet of XSD into HTML using se

Subject: Re: 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
Re:  How to insert a snippet of XSD into HTML using  se
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.