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

Re: XInclude in Cocoon

Subject: Re: XInclude in Cocoon
From: Uche Ogbuji <uche.ogbuji@xxxxxxxxxxxxxxx>
Date: Fri, 09 Feb 2001 07:08:25 -0700
xinclude document html cocoon
> > The XInclude spec defines a way to express inclusions, but makes no
> > prescriptions of the semantics of such inclusions.  An XSLT
> > processor can
> > choose to expand the include or pass it on, and in both cases
> > be conformant to XInclude and XSLT.
> 
> I'm not sure it would be conformant to XSLT. The XSLT spec leaves no room to
> treat xinclude:include as anything other that a literal result element, if
> it appears in the source tree.

Untrue.  The XSLT spec leaves plenty of room by not prescribing how 
stylesheets must be parsed, or any pre-stylesheet-processing on stylesheet or 
source document infosets, or post-stylesheet-processing on result tree 
infosets (or I suppose groves in the HTML & text output case, I guess).

For instance, in the HTML output method, Saxon and 4XSLT replace character 
entities including those between &#160; and &#255; are converted to general 
entities such as &nbsp;.  I see this post-XSLT HTML grove operation which is 
quite legal according to XSLT.

IMO a pre-XSLT expansion of XIncludes in the stylesheet or source documents is 
quite legal as well.

> You could argue that XSLT says nothing about
> how the source tree is created, and therefore it doesn't care whether
> xinclude is expanded during a preprocessing phase; and I suppose you could
> argue that no conformance test can tell the difference...

I don't know abou this latter part.  I would argue that this is a place where 
conformance in undefined, so any conformance test is broken by the very fact 
of its existence.


-- 
Uche Ogbuji                               Principal Consultant
uche.ogbuji@xxxxxxxxxxxxxxx               +1 303 583 9900 x 101
Fourthought, Inc.                         http://Fourthought.com 
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python



 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.