Re: [Gestalt-users] New extension function
Status: Alpha
Brought to you by:
colin-adams
From: Florent G. <dar...@ya...> - 2006-07-14 20:08:15
|
Colin Paul Adams wrote: > Here is my current specification for a proposed new > extension function, to be written this weekend. Comments > welcome. > gexslt:transformation Good news ;-) > This function allows you to run an XSLT transformation > from within your current XSLT transformation. Syntax is: > gexslt:transformation ($trans as xs:anyURI, > $initial-context as node()?, $initial-template as > xs:QName?, $initial-mode as xs:QName?, $parameters as > item*, $flags as xs:boolean*) as item()+ or > gexslt:transformation ($trans as xs:anyURI, > $initial-context as node()?) as item()+ Did you think about dividing this in two times: compilation + transformation itself? So it would be possible to compile once a script and then apply it several times, on several inputs. For example to transform all input documents in a directory, what seems to be a very common need. It is the way choosen in Saxon. And I think it is what JAXP provides with Templates. I see you have "various stylesheet-caching control flags in mind". This can be a simple way to achieve this in some cases, delegated to the user. Regards, --drkm ___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com |