- From: Imsieke, Gerrit, le-tex <gerrit.imsieke@le-tex.de>
- Date: Wed, 9 Sep 2020 08:06:07 +0200
- To: xproc-dev@w3.org
I haven’t tried what happens if you invoke <p:xslt template-name="xsl:initial-template"/>. It might just work, or it might not. On 09.09.2020 08:01, Imsieke, Gerrit, le-tex wrote: > You can specify an initial template with <p:xslt template-name="…">. I’m > not sure whether you can use the template designated as > xsl:initial-template in XProc though. You’d need to supply an empty > sequence or an empty string to the template-name option. Supplying an > empty sequence is tantamount to not setting the option at all, so I > don’t think that the processor can see a difference between supplying an > empty sequence and no template-name option provided at all. On the other > hand, if you explicitly supply an empty string using <p:with-option > name="template-name" select="''"/>, it will try to cast this empty > string to an xs:QName, which will fail. So I recommend that you use a > named template with a name that is not xsl:initial-template.
Received on Wednesday, 9 September 2020 06:06:23 UTC