<?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=DateAndTime.xslt</id>
	<title>DateAndTime.xslt - 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=DateAndTime.xslt"/>
	<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=DateAndTime.xslt&amp;action=history"/>
	<updated>2026-04-23T06:37:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=DateAndTime.xslt&amp;diff=7370&amp;oldid=prev</id>
		<title>Stuartyeates at 07:14, 14 March 2010</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=DateAndTime.xslt&amp;diff=7370&amp;oldid=prev"/>
		<updated>2010-03-14T07:14:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 07:14, 14 March 2010&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-l48&quot; &gt;Line 48:&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='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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:P4toP5]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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:P4toP5]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;[[Category:XSLT]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Stuartyeates</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.tei-c.org/index.php?title=DateAndTime.xslt&amp;diff=4434&amp;oldid=prev</id>
		<title>Syd: New page: Simple stylesheet adjusts the attributes of &lt;tt&gt;&lt;date&gt;&lt;/tt&gt; and &lt;tt&gt;&lt;time&gt;&lt;/tt&gt; elements. &lt;pre&gt;&lt;nowiki&gt;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;  &lt;!-- Tiny XSLT 1.0 stylesheet that reads in a...</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=DateAndTime.xslt&amp;diff=4434&amp;oldid=prev"/>
		<updated>2008-05-04T13:59:59Z</updated>

		<summary type="html">&lt;p&gt;New page: Simple stylesheet adjusts the attributes of &amp;lt;tt&amp;gt;&amp;lt;date&amp;gt;&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;&amp;lt;time&amp;gt;&amp;lt;/tt&amp;gt; elements. &amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;  &amp;lt;!-- Tiny XSLT 1.0 stylesheet that reads in a...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Simple stylesheet adjusts the attributes of &amp;lt;tt&amp;gt;&amp;lt;date&amp;gt;&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;&amp;lt;time&amp;gt;&amp;lt;/tt&amp;gt; elements.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Tiny XSLT 1.0 stylesheet that reads in a TEI (P4) file and writes out the --&amp;gt;&lt;br /&gt;
&amp;lt;!-- same file with the attributes of &amp;lt;date&amp;gt; and &amp;lt;time&amp;gt; adjusted to P5 flavor: --&amp;gt;&lt;br /&gt;
&amp;lt;!-- value= -&amp;gt; when=     --&amp;gt;&lt;br /&gt;
&amp;lt;!-- certainty= -&amp;gt; cert= --&amp;gt;&lt;br /&gt;
&amp;lt;!-- zone= is dropped    --&amp;gt;&lt;br /&gt;
&amp;lt;!-- The output of this stylesheet is not P5-conformant XML; in fact, even the --&amp;gt;&lt;br /&gt;
&amp;lt;!-- elements we are changing may not be valid P5. This is because although we --&amp;gt;&lt;br /&gt;
&amp;lt;!-- move all the bits of information to the right place, it may still be in   --&amp;gt;&lt;br /&gt;
&amp;lt;!-- the wrong format. E.g., a &amp;lt;date value=&amp;quot;ca.1948&amp;quot; certainty=&amp;quot;moderate&amp;quot;&amp;gt; will--&amp;gt;&lt;br /&gt;
&amp;lt;!-- become &amp;lt;date when=&amp;quot;ca.1948&amp;quot; cert=&amp;quot;moderate&amp;quot;&amp;gt;, which has 2 invalid at-     --&amp;gt;&lt;br /&gt;
&amp;lt;!-- tributes. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Copyleft 2008 Syd Bauman and the Brown University Women Writers Project --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- written 2008-05-02 --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;xsl:stylesheet version=&amp;quot;1.0&amp;quot;&lt;br /&gt;
  xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot;&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;!-- Anything that isn't matched below just gets copied over --&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:import href=&amp;quot;Copy-All.xsl&amp;quot;/&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;!-- housekeeping: --&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:output method=&amp;quot;xml&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; cdata-section-elements=&amp;quot;eg&amp;quot;/&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;!-- for value= of either &amp;lt;date&amp;gt; or &amp;lt;time&amp;gt; ... --&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:template match=&amp;quot;date/@value|time/@value&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- ... convert to when= with same value --&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:attribute name=&amp;quot;when&amp;quot;&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;.&amp;quot;/&amp;gt;&amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
  &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;!-- for certainty= of &amp;lt;date&amp;gt; ... --&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:template match=&amp;quot;date/@certainty&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- ... convert to cert= with same value --&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:attribute name=&amp;quot;cert&amp;quot;&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;.&amp;quot;/&amp;gt;&amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
  &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;!-- for zone= of &amp;lt;time&amp;gt; ... --&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:template match=&amp;quot;time/@zone&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- ... ignore it, and advise user we've done so --&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:message&amp;gt;WARNING: zone= attribute of &amp;amp;lt;time&amp;gt; is being dropped!&amp;lt;/xsl:message&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;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Category:P4toP5]]&lt;/div&gt;</summary>
		<author><name>Syd</name></author>
		
	</entry>
</feed>