Re: [xslt] extension modules



Le 19/07/01 02:12:02, Thomas Broyer a écrit :
>    A top-level element is defined by its name, namespace URI and a
>    callback function called just before any transformation:
>      void (*xsltExtModuleTopLevelFunc) (xsltStylesheetPtr style,
>                                         xmlNodePtr inst);

Oops! Of course, this function expects an xsltTransformContext argument,
not a xsltStylesheet!
     void (*xsltExtModuleTopLevelFunc) (xsltTransformContextPtr ctxt,
                                        xmlNodePtr inst);


>  · no precomputation, top-level elements are processed for each
>    transformation

Also note that "no precomputation" means no way to "validate" a stylesheet.
For example, if you use the EXSLT - Functions module with a misplaced
func:result element for example, this will only be raised during
transformation.
If you run xsltproc with multiple source documents, you'll get the error
for each transformation, instead of having a single precomputation error.

Tom.




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