This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: XSL print StyleSheets
- To: docbook-apps at lists dot oasis-open dot org
- Subject: Re: DOCBOOK-APPS: XSL print StyleSheets
- From: Sebastian Rahtz <sebastian dot rahtz at computing-services dot oxford dot ac dot uk>
- Date: Fri, 5 May 2000 12:32:26 +0100 (BST)
- References: <10005041314.aa13083@mammoth.sco.com>
Bob Stayton writes:
> I think Norm is keeping this experimental feature separate
> at this point because it makes use of the XSL extension
> xt:document implemented only in Clark's XT (hence the name
> xtchunk). Not everyone uses XT as their XSLT processor.
>
the saxon, xalan and lotusxsl XSLT processors also support a similar
extension, and Oracle will do any day now. you just have to write your
XSLT code a little more defensively using fallback. here is an example
from my TEI XSLT stylesheets
<xt:document method="html" href="{concat($ident,'.html')}">
<xsl:call-template name="docOut"/>
<xsl:fallback>
<saxon:output method="html" file="{concat($ident,'.html')}">
<xsl:call-template name="docOut"/>
<xsl:fallback>
<xalan:write file="{concat($ident,'.html')}">
<xsl:call-template name="docOut"/>
<xsl:fallback>
<xsl:call-template name="docOut"/>
</xsl:fallback>
</xalan:write>
</xsl:fallback>
</saxon:output>
</xsl:fallback>
</xt:document>
there are other techniques you can use as well
sebastian