[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#702225: xalan: can't transform XHTML files



Package: xalan
Version: 1.10-6
Severity: important

It is no longer possible to transform XHTML files. For instance:

*** test.html ***

<?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";>
<head>
<title>Test</title>
</head>
<body>
<p>Test.</p>
</body>
</html>

*** test.xsl ***

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="xml"
            encoding="utf-8"
            doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
            doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";
            indent="no"/>
<xsl:template match="node()|@*">
  <xsl:copy>
    <xsl:apply-templates select="node()|@*"/>
  </xsl:copy>
</xsl:template>
</xsl:stylesheet>

I get after a few seconds:

XSLT Warning: Fatal Error.Occurred at file test.html, line 3, column 55. An exception occurred! Type:NetAccessorException, Message:Could not open file: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd (line -1, column -1.)

SAXParseException Message is: An exception occurred! Type:NetAccessorException, Message:Could not open file: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd (test.html, line 3, column 55)

There is no such problem with xsltproc. It seems that xalan must
use the catalog system and it fails to do it so.

-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

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

Versions of packages xalan depends on:
ii  libc6          2.13-38
ii  libgcc1        1:4.7.2-5
ii  libstdc++6     4.7.2-5
ii  libxalan110    1.10-6
ii  libxerces-c28  2.8.0+deb1-3

xalan recommends no packages.

xalan suggests no packages.

-- no debconf information


Reply to: