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

RE: xsl:result-document and Saxon serializer problems

Subject: RE: xsl:result-document and Saxon serializer problems
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 21 Aug 2005 22:38:29 +0100
saxon serializer
>     The question that now concerns me is how to remove the img-parms
> namespace from the output file. I dont understand why the serializer
> thinks it is necessary to define that namespace, and I dont know how
> to convince it that it isnt necessary. Any ideas?

Firstly, it's nothing to do with the serializer. The namespace is present in
the result tree, it isn't added by the serializer.

Without going back to study your code in detail, I suspect that the
namespace is copied from the source tree because you used xsl:copy to copy
an element node for which that namespace is in scope. In XSLT 2.0 xsl:copy
has an attribute copy-namespaces="no" to prevent this. It's safe to use this
option provided your data has no namespace-sensitive content - that is,
element or attribute values that contain QNames.

Michael Kay
http://www.saxonica.com/

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.