cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: the "evil" document() function
Date Mon, 19 Mar 2001 17:08:12 GMT
On Mon, 19 Mar 2001, Sylvain Wallez wrote:

> > Unfortunantly looks quite difficult: to make the Cocoon caching system work
> > okay the XSLT processor should somehow let _Cocoon_ know what
> > files it has included with document() function... Can't ivent any way
> > to pass this knowledge from XSLT procssor to Cocoon... :-(
>
> Trax provides the javax.xml.transform.URIResolver interface "that can be
> called by the processor to turn a URI used in document(), xsl:import, or
> xsl:include into a Source object" (copy-paste from Xalan's javadoc).
>
> Isn't just what's needed to notify Cocoon when "document()" is called ?
> A Cocoon implementation could track dependencies, cache documents,
> etc...

hmm. that might do it - if we create a special URIResolver class for each
stylesheet and add to the list of associated resources whenever the
resolve method is called, that would work. i wonder though - _must_ the
trax processor resolve URI's this way?

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message