|
Subject:
|
error on saxon 8.8
|
|
Posted By:
|
rjonk
|
Post Date:
|
10/24/2006 8:33:03 AM
|
I want to convert an xml file to html with in the xslt file these lines in it:
57 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl"> 58 <head>
my output settings are: <xsl:output xmlns="http://www.w3.org/1999/xhtml" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" omit-xml-declaration="yes" indent="yes" media-type="text/html" method="html" version="1.0"/>
With the new version of saxon 8-8 I get an error on line 48 saying: Error at element constructor <head> on line 58 of file:/Z:/mydir/basicreport.xsl: SESU0013: Unsupported HTML version: 1.0 Transformation failed: Run-time errors were reported
with version 8-7-3 I get no error
does anyone know what this error means?
|
|
Reply By:
|
mhkay
|
Reply Date:
|
10/24/2006 9:03:54 AM
|
The error means that Saxon can't produce output conforming to HTML version 1.0. (Quiz question: was there an HTML version 1.0? I've no idea.)
I think you want XHTML version 1.0, so use method="xhtml".
The change in Saxon was to implement a change in the W3C spec: in the past, an unsupported version was simply ignored.
Michael Kay http://www.saxonica.com/ Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
|