<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tei-c.org/index.php?action=history&amp;feed=atom&amp;title=InsertFalsePrecision2.xsl</id>
	<title>InsertFalsePrecision2.xsl - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tei-c.org/index.php?action=history&amp;feed=atom&amp;title=InsertFalsePrecision2.xsl"/>
	<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=InsertFalsePrecision2.xsl&amp;action=history"/>
	<updated>2026-12-04T22:59:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.4</generator>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=InsertFalsePrecision2.xsl&amp;diff=6942&amp;oldid=prev</id>
		<title>Syd: update to the attribute name P5 actually used: when= :-)</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=InsertFalsePrecision2.xsl&amp;diff=6942&amp;oldid=prev"/>
		<updated>2009-10-26T00:31:16Z</updated>

		<summary type="html">&lt;p&gt;update to the attribute name P5 actually used: when= :-)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:31, 26 October 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;TEI datatypes permit times on the value= attribute of the various date &amp;amp;amp; time elements to be expressed to any precision (year, month, day, hour, minute, second, or decimal fraction of a second). However, because the W3C XML Schema datatypes for times do not permit precision to the hour or minute, there exists software that does not handle these values. E.g., such software will reject &amp;quot;13:30&amp;quot; but accept &amp;quot;13:30:00&amp;quot;. This stylesheet (as well as [[InsertFalsePrecision1.xsl|a less powerful version that works with XSLT 1 processors]]) converts times that are precise to only the minute or hour to times that are precise to the second.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;TEI datatypes permit times on the value= attribute of the various date &amp;amp;amp; time elements to be expressed to any precision (year, month, day, hour, minute, second, or decimal fraction of a second). However, because the W3C XML Schema datatypes for times do not permit precision to the hour or minute, there exists software that does not handle these values. E.g., such software will reject &amp;quot;13:30&amp;quot; but accept &amp;quot;13:30:00&amp;quot;. This stylesheet (as well as [[InsertFalsePrecision1.xsl|a less powerful version that works with XSLT 1 processors]]) converts times that are precise to only the minute or hour to times that are precise to the second.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;gt;&amp;lt;nowiki&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;xsl:stylesheet version=&quot;2.0&quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;xsl:stylesheet version=&quot;2.0&quot; xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/del&gt;xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   xmlns:tei=&quot;http://www.tei-c.org/ns/1.0&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   xmlns:tei=&quot;http://www.tei-c.org/ns/1.0&quot; &amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/ins&gt;&amp;lt;!--  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!--  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &lt;/ins&gt;add_false_time_precision_4v2.xslt&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;add_false_time_precision_4v2.xslt&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &lt;/ins&gt;This style-sheet reads in an XML file (presumably a TEI P5 one, but&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;This style-sheet reads in an XML file (presumably a TEI P5 one, but&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &lt;/ins&gt;any other that has similar &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;when&lt;/ins&gt;= attributes of &amp;lt;date&amp;gt; and &amp;lt;time&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;any other that has similar &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;value&lt;/del&gt;= attributes of &amp;lt;date&amp;gt; and &amp;lt;time&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &lt;/ins&gt;elements would work) and writes out the same file with any right-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;elements would work) and writes out the same file with any right-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &lt;/ins&gt;truncated times padded with zeroes.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;truncated times padded with zeroes.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &lt;/ins&gt;I don&#039;t claim for a moment that the method I&#039;ve used here is the&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;I don&#039;t claim for a moment that the method I&#039;ve used here is the&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &lt;/ins&gt;best in any sense of the word &quot;best&quot;, only that it is the one this&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;best in any sense of the word &quot;best&quot;, only that it is the one this&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &lt;/ins&gt;novice XSLTer thought of.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;novice XSLTer thought of.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &lt;/ins&gt;Known limitations:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;Known limitations:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &lt;/ins&gt;* The &quot;00&quot; should probably be a parameter, so users could use some&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;* The &quot;00&quot; should probably be a parameter, so users could use some&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       other value (e.g., &amp;quot;30&amp;quot;) if they wanted.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       other value (e.g., &amp;quot;30&amp;quot;) if they wanted.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;* Obviously, the file cannot be converted back, as there would be no&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &lt;/ins&gt;* Obviously, the file cannot be converted back, as there would be no&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       way for a stylesheet to know whether any particular &amp;quot;:00&amp;quot; was&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       way for a stylesheet to know whether any particular &amp;quot;:00&amp;quot; was&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       added by this stylesheet or actually represents a time precise to&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       added by this stylesheet or actually represents a time precise to&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       the minute or second.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       the minute or second.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;Written 2005-09-26 by Syd Bauman&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &lt;/ins&gt;Written 2005-09-26 by Syd Bauman&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &lt;/del&gt;copyleft 2005 by Syd Bauman and the Text Encoding Initiative Consortium&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &lt;/ins&gt;copyleft 2005 by Syd Bauman and the Text Encoding Initiative Consortium&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    --&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;!&lt;/ins&gt;-- &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Generic copy-everything template --&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &amp;lt;xsl:template match=&quot;@*|node()&quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &amp;lt;xsl:copy&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &amp;lt;xsl:apply-templates select=&quot;@*|node()&quot;/&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &amp;lt;/xsl:copy&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &amp;lt;/xsl:template&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &amp;lt;!-- Generic copy-everything template --&amp;gt;                                                                                 &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &amp;lt;xsl:template match=&quot;@*|*|processing-instruction()|comment()&quot;&amp;gt;                                                            &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &amp;lt;xsl:copy&amp;gt;                                                                                                              &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      &amp;lt;xsl:apply-templates select=&quot;*|@*|text()|processing-instruction()|comment()&quot;/&amp;gt;                                        &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &amp;lt;/xsl:copy&amp;gt;                                                                                                             &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &amp;lt;/xsl:template&amp;gt;                                                                                                           &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;!-- match &amp;lt;date&amp;gt; or &amp;lt;time&amp;gt;, whether namespace defaulted or explicit --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;!-- match &amp;lt;date&amp;gt; or &amp;lt;time&amp;gt;, whether namespace defaulted or explicit --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;xsl:template match=&quot;time[@&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;value&lt;/del&gt;]|tei:time[@&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;value&lt;/del&gt;]|date[@&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;value&lt;/del&gt;]|tei:date[@&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;value&lt;/del&gt;]&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;xsl:template match=&quot;time[@&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;when&lt;/ins&gt;]|tei:time[@&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;when&lt;/ins&gt;]|date[@&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;when&lt;/ins&gt;]|tei:date[@&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;when&lt;/ins&gt;]&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;!-- strip any leading or trailing whitespace --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;!-- strip any leading or trailing whitespace --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;xsl:variable name=&quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;value&lt;/del&gt;&quot; select=&quot;normalize-space(@&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;value&lt;/del&gt;)&quot;/&amp;gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;xsl:variable name=&quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;when&lt;/ins&gt;&quot; select=&quot;normalize-space(@&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;when&lt;/ins&gt;)&quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;xsl:variable name=&amp;quot;intermediateValue&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;xsl:variable name=&amp;quot;intermediateValue&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;!-- Replace times that have only 2 digits with the same --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;!-- Replace times that have only 2 digits with the same --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l49&quot;&gt;Line 49:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 48:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;!-- look for them prevents us from matching any set of --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;!-- look for them prevents us from matching any set of --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;!-- two digits, e.g in &amp;quot;2005-09-28&amp;quot;. --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;!-- two digits, e.g in &amp;quot;2005-09-28&amp;quot;. --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;xsl:value-of select=&quot;replace($&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;value&lt;/del&gt;,&#039;^(.*T)?(\d\d)(Z|[-+]\d\d:\d\d)?$&#039;,&#039;$1$2:00:00$3&#039;)&quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;xsl:value-of select=&quot;replace($&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;when&lt;/ins&gt;,&#039;^(.*T)?(\d\d)(Z|[-+]\d\d:\d\d)?$&#039;,&#039;$1$2:00:00$3&#039;)&quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;/xsl:variable&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;/xsl:variable&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;xsl:variable name=&amp;quot;newValue&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;xsl:variable name=&amp;quot;newValue&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l57&quot;&gt;Line 57:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 56:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;!-- lowed by &amp;quot;:00&amp;quot;, whether or not there was a time --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;!-- lowed by &amp;quot;:00&amp;quot;, whether or not there was a time --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;!-- designator (&amp;quot;T&amp;quot;) or a time zone designator. --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;!-- designator (&amp;quot;T&amp;quot;) or a time zone designator. --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;xsl:value-of select=&quot;replace($intermediateValue,&#039;^(.*T)?(\d\d:\d\d)(Z|[-+]\d\d:\d\d)?$&#039;,&#039;$1$2:00$3&#039;)&quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;xsl:value-of&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        &lt;/ins&gt;select=&quot;replace($intermediateValue,&#039;^(.*T)?(\d\d:\d\d)(Z|[-+]\d\d:\d\d)?$&#039;,&#039;$1$2:00$3&#039;)&quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;/xsl:variable&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;/xsl:variable&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;xsl:element name=&quot;name(.)&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;xsl:element name=&quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{&lt;/ins&gt;name(.)&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}&lt;/ins&gt;&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;!-- create new element, with all the original attributes ... --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;!-- create new element, with all the original attributes ... --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;xsl:copy-of select=&amp;quot;@*&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;xsl:copy-of select=&amp;quot;@*&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;!-- ... but then copy over a new &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;value&lt;/del&gt;= attribute, using --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;!-- ... but then copy over a new &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;when&lt;/ins&gt;= attribute, using --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;xsl:attribute name=&quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;value&lt;/del&gt;&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;xsl:attribute name=&quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;when&lt;/ins&gt;&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         &amp;lt;!-- ... our new value for it ... --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         &amp;lt;!-- ... our new value for it ... --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         &amp;lt;xsl:value-of select=&amp;quot;$newValue&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         &amp;lt;xsl:value-of select=&amp;quot;$newValue&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         &amp;lt;!-- ... replacing the original &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;value&lt;/del&gt;= --&amp;gt;  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         &amp;lt;!-- ... replacing the original &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;when&lt;/ins&gt;= --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/xsl:attribute&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;/xsl:attribute&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;!-- ... don&amp;#039;t forget all text and element children --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;lt;!-- ... don&amp;#039;t forget all text and element children --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l74&quot;&gt;Line 74:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 74:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/xsl:stylesheet&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/xsl:stylesheet&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/nowiki&amp;gt;&lt;/ins&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:XSLT]][[Category:XSLT:2.0]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:XSLT]][[Category:XSLT:2.0]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Syd</name></author>
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=InsertFalsePrecision2.xsl&amp;diff=3111&amp;oldid=prev</id>
		<title>Piotr Banski: yet another revert</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=InsertFalsePrecision2.xsl&amp;diff=3111&amp;oldid=prev"/>
		<updated>2007-04-11T12:55:07Z</updated>

		<summary type="html">&lt;p&gt;yet another revert&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;TEI datatypes permit times on the value= attribute of the various date &amp;amp;amp; time elements to be expressed to any precision (year, month, day, hour, minute, second, or decimal fraction of a second). However, because the W3C XML Schema datatypes for times do not permit precision to the hour or minute, there exists software that does not handle these values. E.g., such software will reject &amp;quot;13:30&amp;quot; but accept &amp;quot;13:30:00&amp;quot;. This stylesheet (as well as [[InsertFalsePrecision1.xsl|a less powerful version that works with XSLT 1 processors]]) converts times that are precise to only the minute or hour to times that are precise to the second.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet version=&amp;quot;2.0&amp;quot;&lt;br /&gt;
  xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; &lt;br /&gt;
  xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;!-- &lt;br /&gt;
    add_false_time_precision_4v2.xslt&lt;br /&gt;
    &lt;br /&gt;
    This style-sheet reads in an XML file (presumably a TEI P5 one, but&lt;br /&gt;
    any other that has similar value= attributes of &amp;lt;date&amp;gt; and &amp;lt;time&amp;gt;&lt;br /&gt;
    elements would work) and writes out the same file with any right-&lt;br /&gt;
    truncated times padded with zeroes.&lt;br /&gt;
    &lt;br /&gt;
    I don&amp;#039;t claim for a moment that the method I&amp;#039;ve used here is the&lt;br /&gt;
    best in any sense of the word &amp;quot;best&amp;quot;, only that it is the one this&lt;br /&gt;
    novice XSLTer thought of. &lt;br /&gt;
  &lt;br /&gt;
    Known limitations:&lt;br /&gt;
    * The &amp;quot;00&amp;quot; should probably be a parameter, so users could use some&lt;br /&gt;
      other value (e.g., &amp;quot;30&amp;quot;) if they wanted.&lt;br /&gt;
    * Obviously, the file cannot be converted back, as there would be no&lt;br /&gt;
      way for a stylesheet to know whether any particular &amp;quot;:00&amp;quot; was&lt;br /&gt;
      added by this stylesheet or actually represents a time precise to&lt;br /&gt;
      the minute or second.&lt;br /&gt;
  &lt;br /&gt;
    Written 2005-09-26 by Syd Bauman&lt;br /&gt;
    copyleft 2005 by Syd Bauman and the Text Encoding Initiative Consortium&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;!-- Generic copy-everything template --&amp;gt;                                                                                 &lt;br /&gt;
  &amp;lt;xsl:template match=&amp;quot;@*|*|processing-instruction()|comment()&amp;quot;&amp;gt;                                                            &lt;br /&gt;
    &amp;lt;xsl:copy&amp;gt;                                                                                                              &lt;br /&gt;
      &amp;lt;xsl:apply-templates select=&amp;quot;*|@*|text()|processing-instruction()|comment()&amp;quot;/&amp;gt;                                        &lt;br /&gt;
    &amp;lt;/xsl:copy&amp;gt;                                                                                                             &lt;br /&gt;
  &amp;lt;/xsl:template&amp;gt;                                                                                                           &lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;!-- match &amp;lt;date&amp;gt; or &amp;lt;time&amp;gt;, whether namespace defaulted or explicit --&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:template match=&amp;quot;time[@value]|tei:time[@value]|date[@value]|tei:date[@value]&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- strip any leading or trailing whitespace --&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:variable name=&amp;quot;value&amp;quot; select=&amp;quot;normalize-space(@value)&amp;quot;/&amp;gt;   &lt;br /&gt;
    &amp;lt;xsl:variable name=&amp;quot;intermediateValue&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;!-- Replace times that have only 2 digits with the same --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- two digits followed by &amp;quot;:00:00&amp;quot;, whether or not there --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- was a time designator (&amp;quot;T&amp;quot;) or a time zone designator. --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- Note, though, that even if the time designator and --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- time zone designator or not present, the fact that we --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- look for them prevents us from matching any set of --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- two digits, e.g in &amp;quot;2005-09-28&amp;quot;. --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:value-of select=&amp;quot;replace($value,&amp;#039;^(.*T)?(\d\d)(Z|[-+]\d\d:\d\d)?$&amp;#039;,&amp;#039;$1$2:00:00$3&amp;#039;)&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:variable&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:variable name=&amp;quot;newValue&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;!-- Now, looking at the result of the above replace(),  --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- replace times that have only 5 characters (2 digits, --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- a colon, and 2 digits) to the same characters fol- --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- lowed by &amp;quot;:00&amp;quot;, whether or not there was a time --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- designator (&amp;quot;T&amp;quot;) or a time zone designator. --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:value-of select=&amp;quot;replace($intermediateValue,&amp;#039;^(.*T)?(\d\d:\d\d)(Z|[-+]\d\d:\d\d)?$&amp;#039;,&amp;#039;$1$2:00$3&amp;#039;)&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:variable&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:element name=&amp;quot;name(.)&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;!-- create new element, with all the original attributes ... --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:copy-of select=&amp;quot;@*&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!-- ... but then copy over a new value= attribute, using --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:attribute name=&amp;quot;value&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- ... our new value for it ... --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:value-of select=&amp;quot;$newValue&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;!-- ... replacing the original value= --&amp;gt; &lt;br /&gt;
      &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
      &amp;lt;!-- ... don&amp;#039;t forget all text and element children --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
  &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Category:XSLT]][[Category:XSLT:2.0]]&lt;/div&gt;</summary>
		<author><name>Piotr Banski</name></author>
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=InsertFalsePrecision2.xsl&amp;diff=3109&amp;oldid=prev</id>
		<title>Piotr Banski: fighting vandalbots</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=InsertFalsePrecision2.xsl&amp;diff=3109&amp;oldid=prev"/>
		<updated>2007-04-11T11:53:38Z</updated>

		<summary type="html">&lt;p&gt;fighting vandalbots&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;TEI datatypes permit times on the value= attribute of the various date &amp;amp;amp; time elements to be expressed to any precision (year, month, day, hour, minute, second, or decimal fraction of a second). However, because the W3C XML Schema datatypes for times do not permit precision to the hour or minute, there exists software that does not handle these values. E.g., such software will reject &amp;quot;13:30&amp;quot; but accept &amp;quot;13:30:00&amp;quot;. This stylesheet (as well as [[InsertFalsePrecision1.xsl|a less powerful version that works with XSLT 1 processors]]) converts times that are precise to only the minute or hour to times that are precise to the second.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet version=&amp;quot;2.0&amp;quot;&lt;br /&gt;
  xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; &lt;br /&gt;
  xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;!-- &lt;br /&gt;
    add_false_time_precision_4v2.xslt&lt;br /&gt;
    &lt;br /&gt;
    This style-sheet reads in an XML file (presumably a TEI P5 one, but&lt;br /&gt;
    any other that has similar value= attributes of &amp;lt;date&amp;gt; and &amp;lt;time&amp;gt;&lt;br /&gt;
    elements would work) and writes out the same file with any right-&lt;br /&gt;
    truncated times padded with zeroes.&lt;br /&gt;
    &lt;br /&gt;
    I don&amp;#039;t claim for a moment that the method I&amp;#039;ve used here is the&lt;br /&gt;
    best in any sense of the word &amp;quot;best&amp;quot;, only that it is the one this&lt;br /&gt;
    novice XSLTer thought of. &lt;br /&gt;
  &lt;br /&gt;
    Known limitations:&lt;br /&gt;
    * The &amp;quot;00&amp;quot; should probably be a parameter, so users could use some&lt;br /&gt;
      other value (e.g., &amp;quot;30&amp;quot;) if they wanted.&lt;br /&gt;
    * Obviously, the file cannot be converted back, as there would be no&lt;br /&gt;
      way for a stylesheet to know whether any particular &amp;quot;:00&amp;quot; was&lt;br /&gt;
      added by this stylesheet or actually represents a time precise to&lt;br /&gt;
      the minute or second.&lt;br /&gt;
  &lt;br /&gt;
    Written 2005-09-26 by Syd Bauman&lt;br /&gt;
    copyleft 2005 by Syd Bauman and the Text Encoding Initiative Consortium&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;!-- Generic copy-everything template --&amp;gt;                                                                                 &lt;br /&gt;
  &amp;lt;xsl:template match=&amp;quot;@*|*|processing-instruction()|comment()&amp;quot;&amp;gt;                                                            &lt;br /&gt;
    &amp;lt;xsl:copy&amp;gt;                                                                                                              &lt;br /&gt;
      &amp;lt;xsl:apply-templates select=&amp;quot;*|@*|text()|processing-instruction()|comment()&amp;quot;/&amp;gt;                                        &lt;br /&gt;
    &amp;lt;/xsl:copy&amp;gt;                                                                                                             &lt;br /&gt;
  &amp;lt;/xsl:template&amp;gt;                                                                                                           &lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;!-- match &amp;lt;date&amp;gt; or &amp;lt;time&amp;gt;, whether namespace defaulted or explicit --&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:template match=&amp;quot;time[@value]|tei:time[@value]|date[@value]|tei:date[@value]&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- strip any leading or trailing whitespace --&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:variable name=&amp;quot;value&amp;quot; select=&amp;quot;normalize-space(@value)&amp;quot;/&amp;gt;   &lt;br /&gt;
    &amp;lt;xsl:variable name=&amp;quot;intermediateValue&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;!-- Replace times that have only 2 digits with the same --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- two digits followed by &amp;quot;:00:00&amp;quot;, whether or not there --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- was a time designator (&amp;quot;T&amp;quot;) or a time zone designator. --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- Note, though, that even if the time designator and --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- time zone designator or not present, the fact that we --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- look for them prevents us from matching any set of --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- two digits, e.g in &amp;quot;2005-09-28&amp;quot;. --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:value-of select=&amp;quot;replace($value,&amp;#039;^(.*T)?(\d\d)(Z|[-+]\d\d:\d\d)?$&amp;#039;,&amp;#039;$1$2:00:00$3&amp;#039;)&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:variable&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:variable name=&amp;quot;newValue&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;!-- Now, looking at the result of the above replace(),  --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- replace times that have only 5 characters (2 digits, --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- a colon, and 2 digits) to the same characters fol- --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- lowed by &amp;quot;:00&amp;quot;, whether or not there was a time --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- designator (&amp;quot;T&amp;quot;) or a time zone designator. --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:value-of select=&amp;quot;replace($intermediateValue,&amp;#039;^(.*T)?(\d\d:\d\d)(Z|[-+]\d\d:\d\d)?$&amp;#039;,&amp;#039;$1$2:00$3&amp;#039;)&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:variable&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:element name=&amp;quot;name(.)&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;!-- create new element, with all the original attributes ... --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:copy-of select=&amp;quot;@*&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!-- ... but then copy over a new value= attribute, using --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:attribute name=&amp;quot;value&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- ... our new value for it ... --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:value-of select=&amp;quot;$newValue&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;!-- ... replacing the original value= --&amp;gt; &lt;br /&gt;
      &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
      &amp;lt;!-- ... don&amp;#039;t forget all text and element children --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
  &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Category:XSLT]][[Category:XSLT:2.0]]&lt;/div&gt;</summary>
		<author><name>Piotr Banski</name></author>
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=InsertFalsePrecision2.xsl&amp;diff=3104&amp;oldid=prev</id>
		<title>Piotr Banski: revert + typos</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=InsertFalsePrecision2.xsl&amp;diff=3104&amp;oldid=prev"/>
		<updated>2007-04-11T10:10:46Z</updated>

		<summary type="html">&lt;p&gt;revert + typos&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;TEI datatypes permit times on the value= attribute of the various date &amp;amp;amp; time elements to be expressed to any precision (year, month, day, hour, minute, second, or decimal fraction of a second). However, because the W3C XML Schema datatypes for times do not permit precision to the hour or minute, there exists software that does not handle these values. E.g., such software will reject &amp;quot;13:30&amp;quot; but accept &amp;quot;13:30:00&amp;quot;. This stylesheet (as well as [[InsertFalsePrecision1.xsl|a less powerful version that works with XSLT 1 processors]]) converts times that are precise to only the minute or hour to times that are precise to the second.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet version=&amp;quot;2.0&amp;quot;&lt;br /&gt;
  xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; &lt;br /&gt;
  xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;!-- &lt;br /&gt;
    add_false_time_precision_4v2.xslt&lt;br /&gt;
    &lt;br /&gt;
    This style-sheet reads in an XML file (presumably a TEI P5 one, but&lt;br /&gt;
    any other that has similar value= attributes of &amp;lt;date&amp;gt; and &amp;lt;time&amp;gt;&lt;br /&gt;
    elements would work) and writes out the same file with any right-&lt;br /&gt;
    truncated times padded with zeroes.&lt;br /&gt;
    &lt;br /&gt;
    I don&amp;#039;t claim for a moment that the method I&amp;#039;ve used here is the&lt;br /&gt;
    best in any sense of the word &amp;quot;best&amp;quot;, only that it is the one this&lt;br /&gt;
    novice XSLTer thought of. &lt;br /&gt;
  &lt;br /&gt;
    Known limitations:&lt;br /&gt;
    * The &amp;quot;00&amp;quot; should probably be a parameter, so users could use some&lt;br /&gt;
      other value (e.g., &amp;quot;30&amp;quot;) if they wanted.&lt;br /&gt;
    * Obviously, the file cannot be converted back, as there would be no&lt;br /&gt;
      way for a stylesheet to know whether any particular &amp;quot;:00&amp;quot; was&lt;br /&gt;
      added by this stylesheet or actually represents a time precise to&lt;br /&gt;
      the minute or second.&lt;br /&gt;
  &lt;br /&gt;
    Written 2005-09-26 by Syd Bauman&lt;br /&gt;
    copyleft 2005 by Syd Bauman and the Text Encoding Initiative Consortium&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;!-- Generic copy-everything template --&amp;gt;                                                                                 &lt;br /&gt;
  &amp;lt;xsl:template match=&amp;quot;@*|*|processing-instruction()|comment()&amp;quot;&amp;gt;                                                            &lt;br /&gt;
    &amp;lt;xsl:copy&amp;gt;                                                                                                              &lt;br /&gt;
      &amp;lt;xsl:apply-templates select=&amp;quot;*|@*|text()|processing-instruction()|comment()&amp;quot;/&amp;gt;                                        &lt;br /&gt;
    &amp;lt;/xsl:copy&amp;gt;                                                                                                             &lt;br /&gt;
  &amp;lt;/xsl:template&amp;gt;                                                                                                           &lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;!-- match &amp;lt;date&amp;gt; or &amp;lt;time&amp;gt;, whether namespace defaulted or explicit --&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:template match=&amp;quot;time[@value]|tei:time[@value]|date[@value]|tei:date[@value]&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- strip any leading or trailing whitespace --&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:variable name=&amp;quot;value&amp;quot; select=&amp;quot;normalize-space(@value)&amp;quot;/&amp;gt;   &lt;br /&gt;
    &amp;lt;xsl:variable name=&amp;quot;intermediateValue&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;!-- Replace times that have only 2 digits with the same --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- two digits followed by &amp;quot;:00:00&amp;quot;, whether or not there --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- was a time designator (&amp;quot;T&amp;quot;) or a time zone designator. --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- Note, though, that even if the time designator and --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- time zone designator or not present, the fact that we --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- look for them prevents us from matching any set of --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- two digits, e.g in &amp;quot;2005-09-28&amp;quot;. --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:value-of select=&amp;quot;replace($value,&amp;#039;^(.*T)?(\d\d)(Z|[-+]\d\d:\d\d)?$&amp;#039;,&amp;#039;$1$2:00:00$3&amp;#039;)&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:variable&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:variable name=&amp;quot;newValue&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;!-- Now, looking at the result of the above replace(),  --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- replace times that have only 5 characters (2 digits, --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- a colon, and 2 digits) to the same characters fol- --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- lowed by &amp;quot;:00&amp;quot;, whether or not there was a time --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- designator (&amp;quot;T&amp;quot;) or a time zone designator. --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:value-of select=&amp;quot;replace($intermediateValue,&amp;#039;^(.*T)?(\d\d:\d\d)(Z|[-+]\d\d:\d\d)?$&amp;#039;,&amp;#039;$1$2:00$3&amp;#039;)&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:variable&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:element name=&amp;quot;name(.)&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;!-- create new element, with all the original attributes ... --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:copy-of select=&amp;quot;@*&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!-- ... but then copy over a new value= attribute, using --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:attribute name=&amp;quot;value&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- ... our new value for it ... --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:value-of select=&amp;quot;$newValue&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;!-- ... replacing the original value= --&amp;gt; &lt;br /&gt;
      &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
      &amp;lt;!-- ... don&amp;#039;t forget all text and element children --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
  &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Category:XSLT]][[Category:XSLT:2.0]]&lt;/div&gt;</summary>
		<author><name>Piotr Banski</name></author>
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=InsertFalsePrecision2.xsl&amp;diff=1537&amp;oldid=prev</id>
		<title>Syd: initial commit</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=InsertFalsePrecision2.xsl&amp;diff=1537&amp;oldid=prev"/>
		<updated>2005-10-01T23:35:24Z</updated>

		<summary type="html">&lt;p&gt;initial commit&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;TEI datatypes permit times on the value= attribute of the various date &amp;amp;amp; time elements to be expressed to any precision (year, month, day, hour, minute, second, or decimal fraction of a second). However, because the W3C XML Schema datatypes for times do not permit precision to the hour or minute, there exists software that does not handle these values. E.g., such software will reject &amp;quot;13:30&amp;quot; but accept &amp;quot;13:30:00&amp;quot;. This styleseet (as well as [[InsertFalsePrecision1.xsl|a less powerful version that works with XSLT 1 processors]]) converts times that are precise to only the minute or hour to times that are precise to the second.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet version=&amp;quot;2.0&amp;quot;&lt;br /&gt;
  xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; &lt;br /&gt;
  xmlns:tei=&amp;quot;http://www.tei-c.org/ns/1.0&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;!-- &lt;br /&gt;
    add_false_time_precision_4v2.xslt&lt;br /&gt;
    &lt;br /&gt;
    This style-sheet reads in an XML file (presumably a TEI P5 one, but&lt;br /&gt;
    any other that has similar value= attributes of &amp;lt;date&amp;gt; and &amp;lt;time&amp;gt;&lt;br /&gt;
    elements would work) and writes out the same file with any right-&lt;br /&gt;
    truncated times padded with zeroes.&lt;br /&gt;
    &lt;br /&gt;
    I don&amp;#039;t claim for a moment that the method I&amp;#039;ve used here is the&lt;br /&gt;
    best in any sense of the word &amp;quot;best&amp;quot;, only that it is the one this&lt;br /&gt;
    novice XSLTer thought of. &lt;br /&gt;
  &lt;br /&gt;
    Known limitations:&lt;br /&gt;
    * The &amp;quot;00&amp;quot; should probably be a parameter, so users could use some&lt;br /&gt;
      other value (e.g., &amp;quot;30&amp;quot;) if they wanted.&lt;br /&gt;
    * Obviously, the file cannot be converted back, as there would be no&lt;br /&gt;
      way for a stylesheet to know whether any particular &amp;quot;:00&amp;quot; was&lt;br /&gt;
      added by this stylesheet or actually represents a time precise to&lt;br /&gt;
      the minute or second.&lt;br /&gt;
  &lt;br /&gt;
    Written 2005-09-26 by Syd Bauman&lt;br /&gt;
    copyleft 2005 by Syd Bauman and the Text Encoding Initiative Consortium&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;!-- Generic copy-everything template --&amp;gt;                                                                                 &lt;br /&gt;
  &amp;lt;xsl:template match=&amp;quot;@*|*|processing-instruction()|comment()&amp;quot;&amp;gt;                                                            &lt;br /&gt;
    &amp;lt;xsl:copy&amp;gt;                                                                                                              &lt;br /&gt;
      &amp;lt;xsl:apply-templates select=&amp;quot;*|@*|text()|processing-instruction()|comment()&amp;quot;/&amp;gt;                                        &lt;br /&gt;
    &amp;lt;/xsl:copy&amp;gt;                                                                                                             &lt;br /&gt;
  &amp;lt;/xsl:template&amp;gt;                                                                                                           &lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;!-- match &amp;lt;date&amp;gt; or &amp;lt;time&amp;gt;, whether namespace defaulted or explicit --&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:template match=&amp;quot;time[@value]|tei:time[@value]|date[@value]|tei:date[@value]&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- strip any leading or trailing whitespacce --&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:variable name=&amp;quot;value&amp;quot; select=&amp;quot;normalize-space(@value)&amp;quot;/&amp;gt;   &lt;br /&gt;
    &amp;lt;xsl:variable name=&amp;quot;intermediateValue&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;!-- Replace times that have only 2 digits with the same --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- two digits followed by &amp;quot;:00:00&amp;quot;, whether or not there --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- was a time desinator (&amp;quot;T&amp;quot;) or a time zone designator. --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- Note, though, that even if the time designator and --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- time zone designator or not present, the fact that we --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- look for them prevents us from matching any set of --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- two digits, e.g in &amp;quot;2005-09-28&amp;quot;. --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:value-of select=&amp;quot;replace($value,&amp;#039;^(.*T)?(\d\d)(Z|[-+]\d\d:\d\d)?$&amp;#039;,&amp;#039;$1$2:00:00$3&amp;#039;)&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:variable&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:variable name=&amp;quot;newValue&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;!-- Now, looking at the result of the above replace(),  --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- replace times that have only 5 characters (2 digits, --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- a colon, and 2 digits) to the same characters fol- --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- lowed by &amp;quot;:00&amp;quot;, whether or not there was a time --&amp;gt;&lt;br /&gt;
      &amp;lt;!-- designator (&amp;quot;T&amp;quot;) or a time zone designator. --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:value-of select=&amp;quot;replace($intermediateValue,&amp;#039;^(.*T)?(\d\d:\d\d)(Z|[-+]\d\d:\d\d)?$&amp;#039;,&amp;#039;$1$2:00$3&amp;#039;)&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:variable&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:element name=&amp;quot;name(.)&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;!-- create new element, with all the original attributes ... --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:copy-of select=&amp;quot;@*&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;!-- ... but then copy over a new value= attribute, using --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:attribute name=&amp;quot;value&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;!-- ... our new value for it ... --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:value-of select=&amp;quot;$newValue&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;!-- ... replacing the original value= --&amp;gt; &lt;br /&gt;
      &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
      &amp;lt;!-- ... don&amp;#039;t forget all text and element children --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
  &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Category:XSLT]][[Category:XSLT:2.0]]&lt;/div&gt;</summary>
		<author><name>Syd</name></author>
	</entry>
</feed>