Package: docbook-xsl-ns
Version: 1.75.2+dfsg-5
Severity: normal
Tags: patch

I have a set of customizations for docbook-xsl-ns; therefore, I use
template/titlepage.xsl to generate my own title page stylesheets.  The
template/titlepage.xsl stylesheet documents t:or to allow one level of
selection, thus:

  <confgroup space-before="0.5em">
    <t:or>
      <conftitle/>
      <confsponsor/>
    </t:or>
  </confgroup>

should process the conftitle and confsponsor inside confgroup.  This
should result in:

  <xsl:template match="d:confgroup" mode="article.titlepage.recto.auto.mode">
    <xsl:apply-templates select="d:conftitle|d:confsponsor" 
mode="article.titlepage.recto.auto.mode"/>
  </xsl:template>

but instead results in:

  <xsl:template match="d:confgroup" mode="article.titlepage.recto.auto.mode">
    <xsl:apply-templates select="conftitle|confsponsor" 
mode="article.titlepage.recto.auto.mode"/>
  </xsl:template>

That is, the namespace prefixes are not present on the output.  A patch
is attached to fix template/titlepage.xsl so that it works correctly in
this case.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages docbook-xsl-ns depends on:
ii  xml-core                      0.13       XML infrastructure and XML catalog

Versions of packages docbook-xsl-ns recommends:
ii  docbook-xsl-doc-html [docbook 1.75.2-1   stylesheets for processing DocBook
ii  docbook5-xml                  5.0-2      standard XML documentation system 

Versions of packages docbook-xsl-ns suggests:
pn  dbtoepub                  <none>         (no description available)
ii  docbook-xsl-saxon         1.00.dfsg.1-4  Java extensions for use with DocBo
ii  fop                       1:0.95.dfsg-11 XML to PDF Translator
ii  libsaxon-java             1:6.5.5-6      The Saxon XSLT Processor
ii  libxalan2-java            2.7.1-5        XSL Transformations (XSLT) process
pn  xalan                     <none>         (no description available)

-- no debconf information

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
--- /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/template/titlepage.xsl	2009-07-21 17:59:17.000000000 +0000
+++ ./titlepage.xsl	2010-06-12 18:55:32.000000000 +0000
@@ -1309,7 +1309,7 @@
         <xsl:with-param name="orlist">
           <xsl:value-of select="$orlist"/>
           <xsl:if test="not($orlist='')">|</xsl:if>
-          <xsl:value-of select="name($elements[position()=$count])"/>
+          <xsl:value-of select="concat('d:', name($elements[position()=$count]))"/>
         </xsl:with-param>
       </xsl:call-template>
     </xsl:otherwise>

Attachment: signature.asc
Description: Digital signature

Reply via email to