forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <je...@apache.org>
Subject Re: Xinclude and (in)validation
Date Mon, 10 Feb 2003 12:16:33 GMT
On Mon, Feb 10, 2003 at 12:32:38PM +0100, Nicola Ken Barozzi wrote:
> 
> 
> Nicola Ken Barozzi wrote, On 07/02/2003 23.31:
> >
> >
> >J.Pietschmann wrote, On 07/02/2003 23.28:
> >
> >>Nicola Ken Barozzi wrote:
> >>
> >>>Problem: one big file :-(
> >>>
> >>>Now, how do I split it?
> >>
> >>Plain old XML entities? :-)
> >
> >
> ><banging the head>
> >Sometimes the simple way is just too near to see ;-)
> 
> And then when you try it it hits you harder than the initial bangign ;-)
> 
> Gosh, I tried that too but failed *miserably*.
> 
> This is the reason [1]:
> "
> The basic problem is that in order to put a SYSTEM entity
> declaration in a chapter file to include its sections, the
> chapter file must have a DOCTYPE declaration to permit
> adding an internal subset.  But then the chapter file is
> referenced as a SYSTEM entity from the book file.
> Then you find out that a file referenced as a
> SYSTEM entity cannot have a DOCTYPE declaration according
> to the XML spec, and parsers will report errors if it
> does.  This "feature" is a serious barrier to doing
> modular doc like you want.

Didn't know about that. Ew..

> "
> 
> So I'm back to square 1 it seems.

For Avalon you could just use xinclude, and disable validation for the
relevant page:

forrest.validate.xdocs.excludes=index.xml


--Jeff

> I'm back to xinclude. I want to use it also in site.xml, to gather 
> snippets from online common versions (and fallback if it doesn't find 
> them). We have to put xinclude before validation. I also tried mixinf 
> DTDs but it was a mess (since xincludes can happen everywhere in the 
> document), and i'd have to do it for all our DTDs.
> 
> Can anyone give me some pointer to how it can be done in Xerces?
> (yes, XNI, I know, I need more concrete tips)
> 
> Anyway, I'm pursuing another path ATM, that of using book.xml as a 
> binder for a single-page view of the book.
> 
> *sigh*
> 
> 
> [1] http://sources.redhat.com/ml/docbook-apps/2002-q4/msg00339.html
> 
> -- 
> Nicola Ken Barozzi                   nicolaken@apache.org
>             - verba volant, scripta manent -
>    (discussions get forgotten, just code remains)
> ---------------------------------------------------------------------
> 

Mime
View raw message