Re: [xslt] libxslt: xsl:include/import cache?

On Tue, Dec 04, 2001 at 10:56:21AM +0100, Elizabeth Mattijsen wrote:
> >... The space used by the stylesheet xmlDoc are shared at the XML
> >level I think, but the XSLT structure on top of it are not.
> Hmmm...  maybe I should approach this as an entity loading problem: there 
> wouldn't be any problems there with sharing, would there be?  Apart from 
> the fact that the entities URL might deliver different data when invoked, 
> so that you would need some MD5 or similar checks in there.  And that could 
> be done with a callback function, or not?

  I don't understand why you duplicate information in all the stylesheets
imports. Using entities sounds worse than using includes because you won't
even share the document tree...
  If you need a functionality from a generated stylesheet, import it, period.
I don't understand at all why you think it's needed to replicate it multiple
time in your import tree. I probably do not understand the problem fully,
and problably can't, but it sounds to me you have a design problem.


Daniel Veillard      | Red Hat Network  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine

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