Re: [xslt] double parse xincludes?



Bob Stayton wrote:
> 
> It is nice that xsltproc handles XIncludes.
> But I understand the inclusion takes place *after*
> the including document has been validated, no?

xmllint has an option to validate _after_ the inclusions:
  xmllint --xinclude --postvalid ...
I dont believe xsltproc has that option though(?)


> That means the included content is not validated.
> How hard would it be to add an option to xsltproc
> to reparse after the inclusions?
> 
> This would be useful where XInclude is used to break up
> large XML documents into modular components, as say,
> chapter files for a book.  That can be done with system
> entities, but a system entity is not a valid document on
> its own since it cannot have a <DOCTYPE> declaration.  An
> XInclude'd document can have a <DOCTYPE> and be validated
> as a module.  But I would also like to validate the
> including document (the book) when it is processed.
> --
> 
> Bob Stayton                                 400 Encinal Street
> Publications Architect                      Santa Cruz, CA  95060
> Technical Publications                      voice: (831) 427-7796
> Caldera International, Inc.                 fax:   (831) 429-1887
>                                             email: bobs@caldera.com
> _______________________________________________
> xslt mailing list, project page http://xmlsoft.org/XSLT/
> xslt@gnome.org
> http://mail.gnome.org/mailman/listinfo/xslt

--
bruce.miller@nist.gov
http://math.nist.gov/~BMiller/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]