debian-bugs-dist  

Bug#595703: docbook-xsl-ns: please copy through existing RDF metadata

brian m. carlson
Sun, 05 Sep 2010 15:57:18 -0700

Package: docbook-xsl-ns
Version: 1.76.0~RC1+dfsg-1
Severity: wishlist
Tags: patch

I've noticed that newer versions of the docbook-xsl-ns stylesheets
create XMP metadata for use with newer versions of FOP.  However, I have
inserted RDF metadata into some of my documents' info elements.  It
would be nice if, in addition to generating XMP/RDF metadata, the
stylesheets would copy through existing RDF metadata.

I've attached a patch to do exactly that.

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

Kernel: Linux 2.6.32-5-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:1.0.dfsg-2  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  libxslthl-java             <none>        (no description available)
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
diff -ur docbook-xsl-ns.old/fo/fop1.xsl docbook-xsl-ns-1.76.0~RC1+dfsg/fo/fop1.xsl
--- docbook-xsl-ns.old/fo/fop1.xsl	2010-09-05 22:36:11.000000000 +0000
+++ docbook-xsl-ns-1.76.0~RC1+dfsg/fo/fop1.xsl	2010-09-05 22:38:26.000000000 +0000
@@ -115,6 +115,7 @@
   <fo:declarations>
     <x:xmpmeta xmlns:x="adobe:ns:meta/">
       <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
+        <xsl:copy-of select="/*[1]/d:info/rdf:RDF/*"/>
         <rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/";>
           <!-- Dublin Core properties go here -->
 

Attachment: signature.asc
Description: Digital signature

  • Bug#595703: docbook-xsl-ns: please copy through existing RDF metadata brian m. carlson