This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 5649 - [XSLT 2.0] unparsed-text(): error handling for when $encoding is not an XML Declaration is unclear
Summary: [XSLT 2.0] unparsed-text(): error handling for when $encoding is not an XML D...
Status: CLOSED INVALID
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 2.0 (show other bugs)
Version: Recommendation
Hardware: Other Linux
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-21 16:58 UTC by Frans Englich
Modified: 2008-10-07 12:40 UTC (History)
0 users

See Also:


Attachments

Description Frans Englich 2008-04-21 16:58:05 UTC
Section 16.2 Reading Text Files reads:

The $encoding argument, if present, is the name of an encoding. The values for this attribute follow the same rules as for the encoding attribute in an XML declaration. 

Two comments:

* Editorial: "The values for this attribute". Possibly "argument" was meant instead of "attribute".

* It says the value should be the same as of an XML declaration, but doesn't specify what the implementation should do if the argument is outside that lexical space. Maybe it's only an informal suggestion(don't know how useful that would be though), but the use of the word "rules" suggest otherwise. Clarification could be useful here. If it's supposed to be a hard error, an error code should probably be specified.
Comment 1 Michael Kay 2008-04-22 12:10:47 UTC
(Personal comment). It's arguably covered in that the description of XTDE1190 "includes the case where the processor does not support the requested encoding"; one could argue that if the requested encoding is invalid then the processor will not support it and can therefore raise this error.
Comment 2 Frans Englich 2008-04-28 08:18:45 UTC
Yes, that is a way to infer it.

It requires maybe a bit of good will. I would agree this is too minor, I'm rejecting.