← Prev in month ← Prev in thread
Next in thread → Next in month →

Re: [docbook-apps] titlepage.xsl generates target script without 'exsl' namespace entry

From
"Cob Rtayton"
Date
2006-03-20T17:44:16+00:00
ID
003501c64c46$4cb04540$6700a8c0@totoro
Thread
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


----- Original Message ----- 
From: "J顤g M鐽ius" <>
To: <>
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: 

For additional commands, e-mail: 
← Prev in month ← Prev in thread
Next in thread → Next in month →