[xml/sgml-pkgs] Bug#356317: xsltproc: partial processing if input document contains DOCTYPE or xmlns

Allan Wind allan_wind at lifeintegrity.com
Sat Mar 11 05:04:57 UTC 2006

Package: xsltproc
Version: 1.1.12-8
Severity: normal

The first part of a stricly xhtml document would look like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

however if I then use that against the following stylesheet:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">                          
	<xsl:output method="html"/>

	<!-- identity translation -->
        <xsl:template match="node()|@*">
                        <xsl:apply-templates select="node()|@*"/>

        <xsl:template match="/html">

then only the identity translation occurs, and not the /html match (the exact
match does not seem to matter, they are not used).  If the DOCTYPE line and
xmlns attribute is removed, then the stylesheet works as expected.  sabcmd
(sablotron) behaves the same (incorrect) way with the xmlns attribute is
included (but works fine with the DOCTYPE line).

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages xsltproc depends on:
ii  libc6                  2.3.2.ds1-22      GNU C Library: Shared libraries an
ii  libgcrypt11            1.2.0-11.1        LGPL Crypto library - runtime libr
ii  libgpg-error0          1.0-1             library for common error values an
ii  libxml2                2.6.16-7          GNOME XML library
ii  libxslt1.1             1.1.12-8          XSLT processing library - runtime 
ii  zlib1g                 1:1.2.2-4.sarge.2 compression library - runtime

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20060311/34ffe28d/attachment.pgp

More information about the debian-xml-sgml-pkgs mailing list