RE: xslt phases for FAQ, was Reading the XML declarat
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.Pawson@xxxxxxxxxxx] > Sent: 20 January 2005 12:17 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: RE: 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
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