Re: [Gestalt-users] New extension function
Status: Alpha
Brought to you by:
colin-adams
From: Colin P. A. <co...@co...> - 2006-07-14 23:48:46
|
>>>>> "Florent" == Florent Georges <dar...@ya...> writes: Florent> Did you think about dividing this in two times: Florent> compilation + transformation itself? So it would be Florent> possible to compile once a script and then apply it Florent> several times, on several inputs. For example to Florent> transform all input documents in a directory, what seems Florent> to be a very common need. No. Florent> It is the way choosen in Saxon. And I think it is what Florent> JAXP provides with Templates. But it is totally superfluous. The Gobo XSLT library implements stylesheet caching by default. So if you call a transformation on the same URi twice, the stylesheet will only be compiled once. Florent> I see you have "various stylesheet-caching control Florent> flags in mind". This can be a simple way to achieve this Florent> in some cases, delegated to the user. These are to alter the behaviour described above. (I'm not sure why anyone would actually want to, but I provided these facilities in the class XM_XSLT_TRANSFORMER_FACTORY from the start. take a look at the source if you like. Eiffel is extremely readable. -- Colin Adams Preston Lancashire |