Subject:Stylesheet questions Author:Tony Lavinio Date:03 Nov 2006 12:05 PM
Every XSLT program has a default document associated with it, hence
the dialog. The way this document is set, according to the standard,
is 'implementation defined'.
That being said, you can still cheat. You can press [Cancel] at the
initial dialog, and change the starting template to use another source
instead of saying <xsl:template match="/"> using the document()
function (which is the answer to your first question also).
However, unless you are using Saxon, which exposes a way to start at
an arbitrary named template, there is no way to RUN an XSLT stylesheet
which has no starting document, since the root of the initial document
is the event that fires off the processing.
If you are using Saxon 8.x, there is an option in the Scenarios
dialog that lets you set the starting template.