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

Re: Saxon output unused namespace declarations

Subject: Re: Saxon output unused namespace declarations
From: Michael Ludwig <mlu@xxxxxxxxxxxxx>
Date: Thu, 23 Jul 2009 14:02:36 +0200
Re:  Saxon output unused namespace declarations
Michael Kay schrieb:

The reason for [copying literal result elements with all their
in-scope namespaces] being the default behaviour is that the processor
in general can't tell which namespaces are used and which aren't (it's
not just prefixes-in-content; there have actually been some XML
vocabulary designs in which the mere presence of a namespace
declaration is used to carry information).

Now that's even more subtle than putting the xmlns attribute (and thus the namespace declaration) in the DTD!

Of course, you could combine the two subtleties by declaring a namespace
unused in markup or content by unobtrusively putting it in the DTD:

<!ATTLIST doc xmlns:aus NMTOKEN #FIXED "milu.do.some.magic" >

And then write an application acting accordingly ... magically ...

Whatever the merits of this approach, thanks for the useful additional
information.

Michael Ludwig

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.