Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 24th, 2006, 08:33 AM
Authorized User
 
Join Date: May 2006
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default error on saxon 8.8

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?
 
Old October 24th, 2006, 09:03 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Error:using saxon with option java -Xmx1024 manish_jaiswal XSLT 4 January 29th, 2008 12:08 PM
Saxon - run-time error during processing entity ROCXY XSLT 1 June 29th, 2007 04:39 AM
what is this error generated by saxon processor? muki XSLT 8 February 12th, 2007 03:57 PM
error XTDE0410 (from saxon generator)??? ronisc XSLT 2 June 27th, 2006 09:18 AM
XPST0081: XPath syntax error ... with Saxon markus2000 XSLT 3 June 22nd, 2006 09:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.