Project

Profile

Help

Bug #5101

closed

Serialization, html-Version: Invalid

Added by Christian Grün over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2021-09-21
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
10
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

Is it by design that the following two expressions are accepted?

serialize(
  <html/>,
  map { 'html-version': 6.789 }
)
declare namespace output = 'http://www.w3.org/2010/xslt-xquery-serialization';
declare option output:html-version '0.123';
<html/>
Actions #1

Updated by Michael Kay over 2 years ago

The spec says:

This document provides the normative definition of serialization for the HTML output method if the requested HTML version has the lexical form of a value of type decimal whose value is 1.0 or greater, but no greater than 5.0. For any other value of version parameter, the behavior is implementation-defined.

Given the choice of rejecting 5.1 or accepting it, I think accepting it is preferable. We have no idea what HTML specifications will be published within the lifetime of our software. And if that applies to 5.1, then logically it applies to any other value.

Actions #2

Updated by Michael Kay over 2 years ago

  • Status changed from New to Closed

Decided to close with no change to the product.

Please register to edit this issue

Also available in: Atom PDF