[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: AW: [docbook-apps] titlepage.xsl generates target script without 'exsl' namespace entry
Hi Bob,
with saxon (6.5.3) it works:
<style
in="titlepageFO.templates.xml"
out="titlepageFO.xsl"
style="docbook/template/titlepage.xsl"
force="yes">
<!-- xalan do not post exsl namespace into target script, so saxon is
used here. -->
<factory name="com.icl.saxon.TransformerFactoryImpl"></factory>
</style>
Thanks
Joerg Moebius
-----Ursprüngliche Nachricht-----
Von: Bob Stayton [mailto:bobs@sagehill.net]
Gesendet: Montag, 20. März 2006 18:47
An: Jörg Möbius; docbook-apps@lists.oasis-open.org
Betreff: Re: [docbook-apps] titlepage.xsl generates target script without
'exsl' namespace entry
This looks to me like a bug in Xalan (used by xsltc). The
titlepage.xsl stylesheet has this template:
<xsl:template match="t:templates">
<xsl:element name="xsl:stylesheet">
<xsl:copy-of
select="document('')/xsl:stylesheet/namespace::exsl"/>
...
The 1.69.1 version of template/titlepage.xsl has the exsl
namespace in its xsl:stylesheet element, so it should get copied
to the output element.
I tested this with xsltproc and saxon 6.5.4 and
xmlns:exsl="http://exslt.org/common" attribute is added to the
xsl:stylesheet element. I tried with Xalan 2.7.0 and it does
not. A little debugging shows that Xalan does recognize that
there is such a namespace node on the input element, but for some
reason it fails to copy it out the result, even though there is
an explicit copy-of for that node.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Jörg Möbius" <joerg.moebius@hamburg.de>
To: <docbook-apps@lists.oasis-open.org>
Sent: Monday, March 20, 2006 7:13 AM
Subject: [docbook-apps] titlepage.xsl generates target script
without 'exsl' namespace entry
Hi all,
I am generating a customized titlepage with this ant task:
<target name="buildTitlepageFO" description="generates a
title page
...">
<style
in="titlepageFO.templates.xml"
out="titlepageFO.xsl"
style="docbook/template/titlepage.xsl"
force="yes">
</style>
</target>
The resulting stylesheet do not contain an
'xmlns:exsl="http://exslt.org/common" entry. It is not a great issue due to
the possibility to post the entry
manually.
Furthermore the titlepage structure is not to be changed not very
often.
But if one could be run only a single build job would be more
convenient.
Does any body know how to avoid this problem resp. how to post
the namespace
automatically (without editing the genuine script).
Config: - ant 1.6.5 within eclipse 3.1.2, -> xsltc
- docbookxls 1.69.1
Thanks in advance for any hint.
Best Regards
Joerg Moebius
---------------------------------------------------------------------
To unsubscribe, e-mail:
docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail:
docbook-apps-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]