Re: xslt phases for FAQ, was Reading the XML declarat
>>>>> "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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format