-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve RelaxNG datatypes of date/time/duration attributes
Updates the date/times/duration RelaxNG types to better align with the HTML definitions: - adds support for yearless dates, year-only dates, and durations for time/datetime - allows a space in addition to 'T' for separating dates and times - makes the colon optional in timezone offsets - limits seconds to three digits after a period Note: the handling of dates and times is much more limited in epubcheck than HTML allows. Some checks can really only be programmed; this change is more an interim step to future integration. Fix #775
- Loading branch information
1 parent
02397ec
commit ef5b94c
Showing
4 changed files
with
103 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||
<head> | ||
<title>times</title> | ||
</head> | ||
<body> | ||
<ul> | ||
<li><time datetime="201">test</time></li> | ||
<li><time datetime="09999001">test</time></li> | ||
<li><time datetime="01--31">test</time></li> | ||
<li><time datetime="---12-31">test</time></li> | ||
<li><time datetime="3123-05-31-12">test</time></li> | ||
<li><time datetime="2019-01-25T 12:12:12Z">test</time></li> | ||
<li><time datetime="2019-01-2512:12:12">test</time></li> | ||
<li><time datetime="2019-01-25A12:12:12Z">test</time></li> | ||
<li><time datetime="2019-01-25T12:12:12-0500Z">test</time></li> | ||
<li><time datetime="2019-01-25 12:12:12-05 00">test</time></li> | ||
<li><time datetime="2019-01-25 12:12:12.33777">test</time></li> | ||
<li><time datetime="2018-W522">test</time></li> | ||
<li><time datetime="2019W01">test</time></li> | ||
<li><time datetime="08::40">test</time></li> | ||
<li><time datetime="19:24:291">test</time></li> | ||
<li><time datetime="14:08:59.999999">test</time></li> | ||
<li><time datetime="P32DT">test</time></li> | ||
<li><time datetime="P32D223T12H">test</time></li> | ||
<li><time datetime="P23DT32M12H">test</time></li> | ||
<li><time datetime="PT2.1112S">test</time></li> | ||
<li><time datetime="PT12H9">test</time></li> | ||
<li><time datetime="P12T431M">test</time></li> | ||
<li><time datetime="9123W12">test</time></li> | ||
<li><time datetime=" 1231 23D ">test</time></li> | ||
<li><time datetime="343HD">test</time></li> | ||
</ul> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||
<head> | ||
<title>times</title> | ||
</head> | ||
<body> | ||
<ul> | ||
<li><time datetime="2019">test</time></li> | ||
<li><time datetime="0001">test</time></li> | ||
<li><time datetime="01-31">test</time></li> | ||
<li><time datetime="02-28">test</time></li> | ||
<li><time datetime="--12-31">test</time></li> | ||
<li><time datetime="3123-05-31">test</time></li> | ||
<li><time datetime="1200-08">test</time></li> | ||
<li><time datetime="2019-01-25T12:12:12Z">test</time></li> | ||
<li><time datetime="2019-01-25 12:12:12">test</time></li> | ||
<li><time datetime="2019-01-25 12:12:12Z">test</time></li> | ||
<li><time datetime="2019-01-25 12:12:12-0500">test</time></li> | ||
<li><time datetime="2019-01-25 12:12:12-05:00">test</time></li> | ||
<li><time datetime="2019-01-25 12:12:12.777">test</time></li> | ||
<li><time datetime="2018-W52">test</time></li> | ||
<li><time datetime="2019-W01">test</time></li> | ||
<li><time datetime="08:40">test</time></li> | ||
<li><time datetime="19:24:29">test</time></li> | ||
<li><time datetime="14:08:59.999">test</time></li> | ||
<li><time datetime="P32D">test</time></li> | ||
<li><time datetime="P32DT12H">test</time></li> | ||
<li><time datetime="P23DT12H32M1231S">test</time></li> | ||
<li><time datetime="PT12H23M12.112S">test</time></li> | ||
<li><time datetime="PT12H">test</time></li> | ||
<li><time datetime="PT431M">test</time></li> | ||
<li><time datetime="PT12.433S">test</time></li> | ||
<li><time datetime="9123W">test</time></li> | ||
<li><time datetime=" 123123D ">test</time></li> | ||
<li><time datetime="343H">test</time></li> | ||
<li><time datetime="1M">test</time></li> | ||
<li><time datetime="12S">test</time></li> | ||
<li><time datetime="12.12S">test</time></li> | ||
<li><time datetime="123W 123H 32D 12S">test</time></li> | ||
</ul> | ||
</body> | ||
</html> |