Package: docbook-xsl-ns
Version: 1.75.2+dfsg-3
Severity: normal

When processing certain types of files with the XHTML stylesheets using
Xalan or Saxon (but not xsltproc), results in unneeded xmlns:saxon
namespace attributes.  This is a problem since those attributes are
prohibited by the XHTML DTDs, and this leakage prevents the XHTML from
validating.  This does not occur with html/html.xsl; I have not tested
xhtml-1_1/html.xsl, but it has the same code.

Adding xmlns:saxon="http://icl.com/saxon"; to the root element and
inserting "saxon" into the exclude-result-prefixes attribute seems to
solve this problem.

A testcase is attached.  It can be run with:

java -cp /usr/share/java/xalan2.jar:/usr/share/java/xercesImpl.jar 
org.apache.xalan.xslt.Process -out testcase.xhtml -in testcase.xml -xsl 
/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/xhtml/docbook.xsl

or

java -cp /usr/share/java/saxon.jar com.icl.saxon.StyleSheet -o testcase.xhtml 
testcase.xml /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/xhtml/docbook.xsl


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

Kernel: Linux 2.6.32-trunk-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-7 XML to PDF Translator
ii  libsaxon-java              1:6.5.5-5     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 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only
OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

Attachment: testcase.xml
Description: XML document

Attachment: signature.asc
Description: Digital signature

Reply via email to