Project

Profile

Help

SESU0006: XML version must be 1.0 or 1.1

Added by Anonymous over 17 years ago

Legacy ID: #4190499 Legacy Poster: Brian Lalonde (brianiac)

Suddenly, after my upgrade to 8.9.0.2 (and even after rolling back to 8.8), I'm getting this error in a stylesheet that has worked fine up to this point.


Replies (2)

RE: SESU0006: XML version must be 1.0 or 1.1 - Added by Anonymous over 17 years ago

Legacy ID: #4190680 Legacy Poster: Brian Lalonde (brianiac)

Oops. At some point, I must have been cleaning up my xsl:output elements, and I frequently mistype mode="...", rather than method="...". Saxon appears to ignore the incorrect attribute, and default to method="xml". This becomes a problem for <xsl:output mode="html" version="4.01"/>, since the version attribute for method="xml" can only be 1.0 or 1.1, which is what the error message was trying to tell me. Sorry about the bugspam.

RE: SESU0006: XML version must be 1.0 or 1.1 - Added by Anonymous over 17 years ago

Legacy ID: #4190918 Legacy Poster: Michael Kay (mhkay)

Recent Saxon releases implement some rules of the specification that were not enforced in earlier releases, either because they were not in the draft specification at the time of the release in question, or because Saxon had not yet got around to implementing them. The error means that your stylesheet has an xsl:output or xsl:result-document that specifies an XML version other than 1.0 or 1.1. You need to fix this error.

    (1-2/2)

    Please register to reply