[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: Paul Grosso <pgrosso@xxxxxxxxxxxxx>
Date: Wed, 07 Feb 2001 09:42:50 -0600
Re:  XInclude in Cocoon
At 00:43 2001 02 07 +0000, Peter Flynn wrote:
>On Wed, 07 Feb 2001, Paul wrote:
>> Some XML parser has to parse all the entities-to-be-included,
>> and it sounds like your application should use a validating
>> parser to do that.  That way, each bit would be validated 
>> against its own DTD before inclusion.
>
>Yep. All the files are validated because they're created in a 
>validating editor :-) But that doesn't stop some authors 
>and [human] editors deciding to correct an error spotted
>at a late stage by "quickly" opening the file in a plaintext
>editor and "fixing" the problem -- invalidly. 

Sounds like you've got a solution that works for you, and
perhaps what I'm about to clarify is already clear, but just
in case it isn't for someone:

My point above wasn't about "pre-validating" some file that
may get tweeked later on.  My point is that the only way
something can get included is by first turning it into an
infoset, and that process requires parsing, potentially by
a validating parser.  The XInclude-aware processor must, of
necessity, include an XML parser, and what I'm saying is that
you might prefer that that parser be a validating one, because
that way you would catch any erroneously tweeked entities right
at the point of attempted inclusion.

paul


 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.