On Wed, May 03, 2006 at 07:56:58AM +0400, Oleg A. Paraschenko wrote: > Hello, > > On Tue, 2 May 2006 17:18:59 -0400 > Daniel Veillard <[EMAIL PROTECTED]> wrote: > > > On Tue, May 02, 2006 at 09:31:40PM +0200, Buchcik, Kasimier wrote: > > > Hi, > > > > > > Extension module initialization functions will be called > > > once for every imported stylesheet (plus the main stylesheet). > > > The initialization function is the "xsltStyleExtInitFunction" > > > argument of the xsltRegisterExtModuleFull() function. > > > Is this the intended design? I.e., is the initialization > > > expected to be called for *every* imported stylehsheet and not > > > only once for a whole stylesheet compilation episode? > > As far as I remember, more precise behaviour is the following. > Initialization is expected for every (imported or main) stylesheet which > has the corresponding "extension-element-prefixes". > > > > > It's probably an oversight, once per stylesheet should be sufficient. > > Do you mean "once per the whole stylesheet"? I think it is not sufficient. > > I have a chain of imported xslt-files that looks like: > > -- [code] > <x:stylesheet extension-element-prefixes="myx" ...> > > <myx:init>...</myx:init> > > ... > > </x:stylesheet> > --- [/code] > > When my xsltStyleExtInitFunction is activated, it looks for "myx:init" and > performs additional initialization for the corresponding xslt file. If the > function were called only once, I'd have problems to locate all "myx:init" > in all xslt files.
okay, then Kasimier has his answer, ignore mine :-) Daniel -- Daniel Veillard | Red Hat http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ _______________________________________________ xslt mailing list, project page http://xmlsoft.org/XSLT/ [email protected] http://mail.gnome.org/mailman/listinfo/xslt
