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

Re: How to remove unnecessary "xmlns:xx" attributes?

Subject: Re: How to remove unnecessary "xmlns:xx" attributes?
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Wed, 10 Nov 2010 08:52:37 +0000
Re:  How to remove unnecessary "xmlns:xx" attributes?
On 09/11/2010 18:58, KARR, DAVID (ATTSI) wrote:
I currently have an ad hoc Soap client framework that uses JAXB to
marshal a Soap request.  This generates a "minimal" Soap envelope, in
that it contains a "xmlns:xx" attribute for every "xx" that is actually
referenced in the request.

Then stop generating them...

How you stop generating them depends on where they are coming from. Generally it's likely that they are either copied from the source document or from the stylesheet. If they are copied from the stylesheet, use exclude-result-prefixes. If they are copied from the source document, try copy-namespaces="no" on xsl:copy or xsl:copy-of, assuming you are using XSLT 2.0.

If that doesn't work, show us your code.

Michael Kay
Saxonica

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.