| This method tests a quite insidious side-effect of
XStreamSource delaying the allocation and configuration of
the SAXWriter until the XSLT processor requests it.
SAXWriter performs a copy of the source list contents upon
property setting to avoid objects being added or removed from
the list during the parse.
To avoid just another list copy, XStreamSource does not
protect itself against list changes. Hence, it is possible
for an application to configure the XStreamSource and then
empty the list prior triggering the XSL transformation..
This method ensures SAXWriter indeed checks the list content
prior starting the parse.
|