XSLT: initial template

  Hi,

  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:xslt>
       <p:option name="initial-template" value="initial"/>
       <p:input port="stylesheet">
          <p:inline>
             <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:xslt>
       <p:input port="source">
          <p:inline>
             <dummy/>
          </p:inline>
       </p:input>
       <p:input port="stylesheet">
          <p:inline>
             <xsl:stylesheet version="2.0">
                <xsl:template match="/">
                   ...

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/

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