Re: [xsl] XInclude in Cocoon

Subject: Re: [xsl] XInclude in Cocoon
From: Peter Flynn <peter@xxxxxxxxxxx>
Date: Tue, 6 Feb 2001 20:13:07 +0000
On Tue, 06 Feb 2001, Bill wrote:

> I was playing with XInclude in Cocoon 1.8.2 over the weekend. It's neat.
> 
> You declare the XInclude namespace in your XML file, then you can use it at
> least three ways:
> 
> Wholesale include of an XML file.

Do you have to strip the XML Declaration and the DocType Declaration
from an XML file before letting it be included? Or can you leave them
on? What happens if the file you include is not syntactically valid wrt
the DTD of the file you're including it in?

> Wholesale include of a text file. (you use the parse attribute of the
> include element to control this)

Useful.

> Or the inclusion of a some nodes from an XML file specified by an XPath
> expression.

This is the killer app. Lawyers can now include boilerplate on the fly :-)
You can publish a document which consists entirely of links to fragments
of other document scattered throughout cyberspace...

///Peter

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread