W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > October 2008

XSLT: initial template

From: Florent Georges <fgeorges@fgeorges.org>
Date: Thu, 30 Oct 2008 15:05:59 +0100
Message-ID: <ebaca5bf0810300705m105e733nf3f0ae42300b038e@mail.gmail.com>
To: "XProc Comments" <public-xml-processing-model-comments@w3.org>


  I wonder if this has been discussed yet here (about XSLT 2.0
features,) but cannot find it.  The current WD doesn't incude an
initial-template option for the xslt step.  Is there a way to set the
initial template?

  I think that is an important feature of XSLT in the context of
XProc.  If one wants to use a stylesheet as a source of information,
an easy pattern is to use something similar to:

       <p:option name="initial-template" value="initial"/>
       <p:input port="stylesheet">
             <xsl:stylesheet version="2.0">
                <xsl:template name="initial">

  But if I am right, we have as for now to provide an unused input
document instead:

       <p:input port="source">
       <p:input port="stylesheet">
             <xsl:stylesheet version="2.0">
                <xsl:template match="/">


Florent Georges
Received on Thursday, 30 October 2008 14:06:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:41:08 UTC