<?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=Set_when-iso_to_today</id>
	<title>Set when-iso to today - 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=Set_when-iso_to_today"/>
	<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Set_when-iso_to_today&amp;action=history"/>
	<updated>2026-04-22T20:19:36Z</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=Set_when-iso_to_today&amp;diff=14304&amp;oldid=prev</id>
		<title>Joel Kalvesmaki: Started page</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Set_when-iso_to_today&amp;diff=14304&amp;oldid=prev"/>
		<updated>2015-05-14T15:25:23Z</updated>

		<summary type="html">&lt;p&gt;Started page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The code below is intended to offer a quick fix for an empty &amp;lt;code&amp;gt;@when-iso&amp;lt;/code&amp;gt; element by suggesting the insertion of either today's date or the current date and time in ISO-compliant form. It is ideal for &amp;lt;code&amp;gt;&amp;lt;change&amp;gt;&amp;lt;/code&amp;gt; elements, to save time in typing the day or time when a change was made.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &amp;lt;rule context=&amp;quot;@when-iso&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;report role=&amp;quot;warn&amp;quot; test=&amp;quot;. = ''&amp;quot; sqf:fix=&amp;quot;insert-todays-date insert-current-dateTime&amp;quot;&amp;gt;@iso-when should not be&lt;br /&gt;
       empty.&amp;lt;/report&amp;gt;&lt;br /&gt;
    &amp;lt;sqf:fix id=&amp;quot;insert-todays-date&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;sqf:description&amp;gt;&lt;br /&gt;
          &amp;lt;sqf:title&amp;gt;Insert today's date (ISO)&amp;lt;/sqf:title&amp;gt;&lt;br /&gt;
       &amp;lt;/sqf:description&amp;gt;&lt;br /&gt;
       &amp;lt;sqf:replace match=&amp;quot;.&amp;quot; target=&amp;quot;when-iso&amp;quot; node-type=&amp;quot;attribute&amp;quot;&amp;gt;&lt;br /&gt;
          &amp;lt;value-of select=&amp;quot;current-date()&amp;quot;/&amp;gt;&lt;br /&gt;
       &amp;lt;/sqf:replace&amp;gt;&lt;br /&gt;
    &amp;lt;/sqf:fix&amp;gt;&lt;br /&gt;
    &amp;lt;sqf:fix id=&amp;quot;insert-current-dateTime&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;sqf:description&amp;gt;&lt;br /&gt;
          &amp;lt;sqf:title&amp;gt;Insert today's date and time (ISO)&amp;lt;/sqf:title&amp;gt;&lt;br /&gt;
       &amp;lt;/sqf:description&amp;gt;&lt;br /&gt;
       &amp;lt;sqf:replace match=&amp;quot;.&amp;quot; target=&amp;quot;when-iso&amp;quot; node-type=&amp;quot;attribute&amp;quot;&amp;gt;&lt;br /&gt;
          &amp;lt;value-of select=&amp;quot;current-dateTime()&amp;quot;/&amp;gt;&lt;br /&gt;
       &amp;lt;/sqf:replace&amp;gt;&lt;br /&gt;
    &amp;lt;/sqf:fix&amp;gt;&lt;br /&gt;
 &amp;lt;/rule&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Schematron]]&lt;/div&gt;</summary>
		<author><name>Joel Kalvesmaki</name></author>
		
	</entry>
</feed>