[EMAIL PROTECTED] wrote:
Sean Gilligan writes about a [known] problem with
<xsl:copy-of select="document('')/xsl:stylesheet/namespace::exsl"/>

One possible workaround that may be pretty universal is to try
<xsl:copy-of 
select="document('')/xsl:stylesheet/namespace::*[name(.)='exsl']"/>
or maybe even try local-name(.) if desperate. Use string(.) to match the 
namespace URI.
.................David Marston


  
Thanks for the responses.  The problem was occurring when using the DocBook XSL stylesheets to generate a custom titlepage.  I switched to Saxon to avoid the problem, but will submit the information to the docbook-apps mailing list as well.  In case anyone is interested, I'll provide the details of the DocBook XSL code.

I'm using DocBook XSL 1.69.1, although the problem appears to exist in the latest version (1.70.1) as well.
This excerpt starts at line 76 of the file template/titlepage.xsl:

<xsl:template match="t:templates">
  <xsl:element name="xsl:stylesheet">
     <xsl:copy-of select="document('')/xsl:stylesheet/namespace::exsl"/>
     ... snip ...
</xsl:template>

Regards,

Sean



Reply via email to