In phase 0 you've included building the stylesheet and building the source
document. There's nothing in the rules to say which is done first, but
because of xsl:strip-space, chances are the stylesheet will be processed
first, whereas your list might be thought to imply otherwise.
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Pawson, David [mailto:David(_dot_)Pawson(_at_)rnib(_dot_)org(_dot_)uk]
Sent: 20 January 2005 12:17
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] xslt phases for FAQ, was Reading the XML
declaration using XSL 2
Amended by comments so far:
Phase 0, XML parse of stylesheet and input document:
Expand character references and parsed entities;
Determine source doc encoding.
Normalize newlines.
Normalize whitespace.
Replace CDATA sections with characters.
Validate (if using a validating parser with validation switched on)
Populate defaulted values if using DTD/XML Schema.
Identify any nodes with ID values.
URI resolution (E.g. Catalog management)
Build the internal model of the stylesheet
(including URI resolution if needed) by parsing the stylesheet
including any included or imported stylesheets.
Build the internal model of the source document (if present)
Action document properties such as xml:space, xml:base etc
Phase 1, XSLT transformation.
Apply the stylesheet to the input document (if present) (Colin)
URI and entity resolution for any doc() and document() calls
from the stylesheet. (Colin)
Parse additional entities such as the result of
document() calls,
Build the output tree.
Phase 2, Output | Serialisation
From the output tree, produce the output document
Apply applicable document properties such as xml:space
Apply appropriate character encodings
Apply any character maps (XSLT 2.0)
This could be
DOM Document or
SAX stream or
Serialised to a Disk file (Jarno)
regards DaveP
** snip here **
--
DISCLAIMER:
NOTICE: The information contained in this email and any
attachments is
confidential and may be privileged. If you are not the intended
recipient you should not use, disclose, distribute or copy any of the
content of it or of any attachment; you are requested to notify the
sender immediately of your receipt of the email and then to delete it
and any attachments from your system.
RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants. However, it
cannot accept any responsibility for any such which are transmitted.
We therefore recommend you scan all attachments.
Please note that the statements and views expressed in this email and
any attachments are those of the author and do not
necessarily represent
those of RNIB.
RNIB Registered Charity Number: 226227
Website: http://www.rnib.org.uk
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--