[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] unparsed text


Subject: Re: [xsl] unparsed text
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Fri, 16 Nov 2012 10:35:31 +0000

On 16/11/2012 09:15, Andrew Welch wrote:
On 16 November 2012 09:11, Michael Kay <mike@xxxxxxxxxxxx> wrote:
The second part of the answer (which I guess Ken assumed you already knew)
is that having started your transformation without an XML document as input,
you can then read the text file using the unparsed-text() function.
The other thing worth mentioning is the 'default initial template' in
3.0.... what was the end result there?


3.0 will provide a default initial template, which you get by naming the template xsl:initial-template. However, since the XSLT spec doesn't define APIs, the exact effect depends on the API design. On the Saxon command line I'll probably change it so -it without an option value means -it:xsl:initial-template.

Michael Kay
Saxonica


Current Thread
Keywords