xsl-list
[Top] [All Lists]

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

2005-01-20 04:10:49
"Dave" == Pawson, David <David(_dot_)Pawson(_at_)rnib(_dot_)org(_dot_)uk> 
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--