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

Re: XInclude as an XSLT transformation?

Subject: Re: XInclude as an XSLT transformation?
From: Oleg Tkachenko <oleg@xxxxxxxxxxxxx>
Date: Thu, 30 Dec 2004 12:22:30 +0200
xslt xinclude
Colin Paul Adams wrote:

Now that XInclude is a recommendation, I took another look at it.

Since it is essentially a tranformation on the XML Information Set, it
occurs to me it ought to be possible to write a generic XInclude
processor in XSLT.

Well, one can implement some XInclude basics in XSLT (and many did), but developing a conforming implementation would be not a piece of cake and can't be done with pure XSLT1 for sure. There are some troubles here I see:
1. Including of non-XML resources.
2. Detecting encoding of non-XML resources.
3. Checking for forbidden in XML characters in non-XML resources.
4. Detecting errors when fetching resources - in order to implement fallback an XInclude implementation has to catch numerous errors and distinguish between resource errors (such as file not found) and fatal errors (such as attempts to include malformed XML).
5. Setting HTTP headers when fetching external resources.
6. Preserving DOCTYPE.


--
Oleg Tkachenko
http://blog.tkachenko.com
Multiconn Technologies, Israel

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.