Project

Profile

Help

Bug #2578

closed

lang() only considers first hyphen

Added by Michael Kay over 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XPath conformance
Sprint/Milestone:
Start date:
2016-01-09
Due date:
% Done:

100%

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

Description

If xml:lang is aa-bb-cc, then the spec of fn:lang says it should match "aa-bb-cc", "aa-bb", or "aa".

Looking at the code, I think it will only match "aa-bb-cc" or "aa".

Please register to edit this issue

Also available in: Atom PDF