OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] XSLT with DOM or SAX ?

[ Lists Home | Date Index | Thread Index ]

> Does document('') load the XSL from the source again?

In Saxon, document('') always reparses the stylesheet document. There are
several reasons:

(a) If you're using XML external entities, document('') gives you the
current external entity, not the whole document.

(b) Saxon doesn't keep the source stylesheet around at run-time.

(c) When a stylesheet is parsed, comments and processing instructions and
most whitespace text nodes are discarded very early on. But these are needed
in the result of document('').

Michael Kay


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS