Re: [xsl] xslt phases for FAQ, was Reading the XML declaration using XSL

Subject: Re: [xsl] xslt phases for FAQ, was Reading the XML declaration using XSL
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 20 Jan 2005 11:10:49 +0000
>>>>> "Dave" == Pawson, David <David.Pawson@xxxxxxxxxxx> writes:

    Dave> Phase 0, XML parse: Resolve entities; Determine source doc
    Dave> encoding Validate (if using a validating parser with
    Dave> validation switched on)
    Dave> Catalog resolution (if appropriate)

This is either just a special case of entity resolution (in which case
it needs no further mention in this phase), or else it is a special
case of URI resolution (in which case it takes place both when
building the stylesheet, and when executing the doc() and document()
functions).

    Dave> Build the internal model of the source document Build the
    Dave> internal model of the stylesheet

Other way round - the stylesheet must be compiled first, in order to
determine the whitespace-stripping rules to be applied when stripping
the source document.
I suppose that an implementation might build the source document in
two stages, but this seems illogical.
Also, in XSLT 2.0 - a source document need not be present, so building
it is an optional step.


-- 
Colin Paul Adams
Preston Lancashire

Current Thread