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

Re: Partial Implementation of XInclude include element

Subject: Re: Partial Implementation of XInclude include element
From: "W. Eliot Kimber" <eliot@xxxxxxxxxx>
Date: Wed, 25 Sep 2002 14:55:55 -0500
xinclude saxon
Jeni Tennison wrote:

> I don't really understand why you want the namespaces from the
> *stylesheet* copied through into the output? Surely the only
> namespaces that should go through are those from the original source
> document and those from the document that's being XIncluded?
> 
> Can you give an example that demonstrates what you want to happen?

Here's what I'm observing: when using Stylus Studio 4.5 beta (which
enables Saxon as a debugging XSLT engine), if I use Saxon to do the
transform, then Saxon copies all the namespace declarations from the
xsl:stylesheet element to the root element of the output doucment. If I
use the built-in XSLT engine, no copying.

So: which behavior is more correct? Or have I inadvertantly turned on a
convenience feature of Saxon?

The Saxon behavior is convenient because, for example, it means I don't
have to worry about explicitly declaring the FO name space in the output
document because it's already declared in the style sheet (which is an
FO style sheet, natch). But as you point out, it's easy enough to do
this copying explicitly if you want it, or just declare the name spaces
you actually need.

It doesn't hurt anything to declare namespaces that are never used, but
I guess the neatness principle would suggest it's better to not declare
namespaces you aren't using.

Thanks,

Eliot
-- 
W. Eliot Kimber, eliot@xxxxxxxxxx
Consultant, ISOGEN International

1016 La Posada Dr., Suite 240
Austin, TX  78752 Phone: 512.656.4139

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.