Re: XSLT processing model in Mozilla

Jonas Sicking <[email protected]> Mon, 02 Jul 2007 15:57:02 -0700
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Message-ID <[email protected]>
The way we do it for transformations done using
<?xml-stylesheet type="text/xslt" ...?> is as follows:

We parse the source document normally into a DOM, however during this 
parsing script execution is turned off for the source document.

Simultaneously we load the stylesheet and parse it into an internal 
compiled format (not a DOM).

Once both the source document and stylesheet is done loading we execute 
the stylesheet.

Executing the stylesheet builds DOM nodes which once the execution is 
done is displayed instead of the source document.

Hope that helps.
/ Jonas

Florent Georges wrote:
>   Hi
> 
>   I wonder about the processing model of applying an XSLT
> stylesheet in Mozilla.  I looked for on the project page [1]
> and on MDC [2] but I didn't find anything about Transformiix
> in particular (quite everything is about XSLT in general).
> 
>   I'd like to know the way the XML document is getting from
> the server to the displayed page.  Is a DOM build from the
> downloaded document then passed to the XSLT processor that
> transforms it into another DOM?  Or does it use some stream
> APIs?  Or anything else?
> 
>   Does someone can give me the big picture or a link to some
> info?
> 
>   Thanks in advance.  Regards,
> 
> --drkm
> 
> 
> [1]http://www.mozilla.org/projects/xslt/
> [2]http://developer.mozilla.org/en/docs/XSLT
>