<?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=Extract-svn-id.xslt</id>
	<title>Extract-svn-id.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=Extract-svn-id.xslt"/>
	<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Extract-svn-id.xslt&amp;action=history"/>
	<updated>2026-04-22T08:02:39Z</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=Extract-svn-id.xslt&amp;diff=7245&amp;oldid=prev</id>
		<title>Syd: remove &lt;titleStmt&gt; from path (don't ask me why I didn't fix this same time as previous fix, no real good answer :-)</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Extract-svn-id.xslt&amp;diff=7245&amp;oldid=prev"/>
		<updated>2010-01-31T20:25:09Z</updated>

		<summary type="html">&lt;p&gt;remove &amp;lt;titleStmt&amp;gt; from path (don&amp;#039;t ask me why I didn&amp;#039;t fix this same time as previous fix, no real good answer :-)&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 20:25, 31 January 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-l75&quot; &gt;Line 75:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 75:&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;xsl:choose&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;xsl:choose&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;       &amp;lt;xsl:when&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;xsl:when&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;color: #222; 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;         test=&amp;quot;/tei:teiCorpus/tei:TEI/tei:teiHeader/tei:fileDesc&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;/tei:titleStmt&lt;/del&gt;/tei:editionStmt[contains(normalize-space(.),'$Id: ')]&amp;quot;&amp;gt;&lt;/div&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;         test=&amp;quot;/tei:teiCorpus/tei:TEI/tei:teiHeader/tei:fileDesc/tei:editionStmt[contains(normalize-space(.),'$Id: ')]&amp;quot;&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;         &amp;lt;xsl:value-of&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;xsl:value-of&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;color: #222; 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;           select=&amp;quot;normalize-space(/tei:teiCorpus/tei:TEI/tei:teiHeader/tei:fileDesc&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;/tei:titleStmt&lt;/del&gt;/tei:editionStmt)&amp;quot;&lt;/div&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;           select=&amp;quot;normalize-space(/tei:teiCorpus/tei:TEI/tei:teiHeader/tei:fileDesc/tei:editionStmt)&amp;quot;&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;         /&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;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;       &amp;lt;/xsl:when&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;/xsl:when&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;       &amp;lt;xsl:when&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;xsl:when&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;color: #222; 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;         test=&amp;quot;/tei:TEI/tei:teiHeader/tei:fileDesc&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;/tei:titleStmt&lt;/del&gt;/tei:editionStmt[contains(normalize-space(.),'$Id: ')]&amp;quot;&amp;gt;&lt;/div&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;         test=&amp;quot;/tei:TEI/tei:teiHeader/tei:fileDesc/tei:editionStmt[contains(normalize-space(.),'$Id: ')]&amp;quot;&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;         &amp;lt;xsl:value-of&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;xsl:value-of&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;color: #222; 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;           select=&amp;quot;normalize-space(/tei:TEI/tei:teiHeader/tei:fileDesc&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;/tei:titleStmt&lt;/del&gt;/tei:editionStmt)&amp;quot;/&amp;gt;&lt;/div&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;           select=&amp;quot;normalize-space(/tei:TEI/tei:teiHeader/tei:fileDesc/tei:editionStmt)&amp;quot;/&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;       &amp;lt;/xsl:when&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;/xsl:when&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;       &amp;lt;!--&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;!--&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=Extract-svn-id.xslt&amp;diff=7244&amp;oldid=prev</id>
		<title>Syd: bug fix — forgot &lt;TEI&gt; in paths!</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Extract-svn-id.xslt&amp;diff=7244&amp;oldid=prev"/>
		<updated>2010-01-31T20:19:45Z</updated>

		<summary type="html">&lt;p&gt;bug fix — forgot &amp;lt;TEI&amp;gt; in paths!&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 20:19, 31 January 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-l75&quot; &gt;Line 75:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 75:&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;xsl:choose&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;xsl:choose&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;       &amp;lt;xsl:when&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;xsl:when&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;color: #222; 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;         test=&amp;quot;/tei:teiCorpus/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:editionStmt[contains(normalize-space(.),'$Id: ')]&amp;quot;&amp;gt;&lt;/div&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;         test=&amp;quot;/tei:teiCorpus&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/tei:TEI&lt;/ins&gt;/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:editionStmt[contains(normalize-space(.),'$Id: ')]&amp;quot;&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;         &amp;lt;xsl:value-of&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;xsl:value-of&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;color: #222; 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;           select=&amp;quot;normalize-space(/tei:teiCorpus/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:editionStmt)&amp;quot;&lt;/div&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;           select=&amp;quot;normalize-space(/tei:teiCorpus&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/tei:TEI&lt;/ins&gt;/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:editionStmt)&amp;quot;&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;         /&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;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;       &amp;lt;/xsl:when&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;/xsl:when&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;       &amp;lt;xsl:when&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;xsl:when&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;color: #222; 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;         test=&amp;quot;/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:editionStmt[contains(normalize-space(.),'$Id: ')]&amp;quot;&amp;gt;&lt;/div&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;         test=&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/tei:TEI&lt;/ins&gt;/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:editionStmt[contains(normalize-space(.),'$Id: ')]&amp;quot;&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;         &amp;lt;xsl:value-of&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;xsl:value-of&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;color: #222; 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;           select=&amp;quot;normalize-space(/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:editionStmt)&amp;quot;/&amp;gt;&lt;/div&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;           select=&amp;quot;normalize-space(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/tei:TEI&lt;/ins&gt;/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:editionStmt)&amp;quot;/&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;       &amp;lt;/xsl:when&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;/xsl:when&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;       &amp;lt;!--&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;!--&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=Extract-svn-id.xslt&amp;diff=7243&amp;oldid=prev</id>
		<title>Syd: improve comments at top — didn't touch stylesheet itself</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Extract-svn-id.xslt&amp;diff=7243&amp;oldid=prev"/>
		<updated>2010-01-31T19:29:27Z</updated>

		<summary type="html">&lt;p&gt;improve comments at top — didn&amp;#039;t touch stylesheet itself&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 19:29, 31 January 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-l3&quot; &gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&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;This XSLT 1.0 stylesheet will read in an XML file and look through the &amp;lt;tt&amp;gt;&amp;amp;lt;editionStmt&amp;gt;&amp;lt;/tt&amp;gt; and comments for such a string of useful information, and return only the string (or nothing, if one wasn’t found).&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;This XSLT 1.0 stylesheet will read in an XML file and look through the &amp;lt;tt&amp;gt;&amp;amp;lt;editionStmt&amp;gt;&amp;lt;/tt&amp;gt; and comments for such a string of useful information, and return only the string (or nothing, if one wasn’t found).&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;/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;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note that this looks like a big, complicated stylesheet&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, but &lt;/del&gt;in fact it is quite small and not that complex. It looks large because it is verbosely documented. It has only ~25 &amp;lt;tt&amp;gt;xsl:&amp;lt;/tt&amp;gt; elements, but ~41 documentation elements (&amp;lt;tt&amp;gt;xhtml&amp;lt;/tt&amp;gt; and oXygen’s &amp;lt;tt&amp;gt;xd:&amp;lt;/tt&amp;gt;).&lt;/div&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;Note that this &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;stylesheet:&lt;/ins&gt;&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 class=&quot;diffchange diffchange-inline&quot;&gt;# &lt;/ins&gt;looks like a big, complicated stylesheet&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. But &lt;/ins&gt;in fact it is quite small and not that complex. It looks large because it is verbosely documented. It has only ~25 &amp;lt;tt&amp;gt;xsl:&amp;lt;/tt&amp;gt; elements, but ~41 documentation elements (&amp;lt;tt&amp;gt;xhtml&amp;lt;/tt&amp;gt; and oXygen’s &amp;lt;tt&amp;gt;xd:&amp;lt;/tt&amp;gt;)&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&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 class=&quot;diffchange diffchange-inline&quot;&gt;# is not even close to foolproof. It just looks for the strings that Subversion uses to delimit the substituted Id keyword. It will mess up if those strings occur in comments other than those in the desired format (e.g., as you might well find in a book about Subversion, or you will find in this stylesheet itself, since a portion of code is commented out to demonstrate how to do something differently).&lt;/ins&gt;&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 class=&quot;diffchange diffchange-inline&quot;&gt;# is trying to be semi-intelligent about where it looks. But in truth, it would probably be fine to just look at &amp;lt;code&amp;gt;normalize-space(/)&amp;lt;/code&amp;gt; for the strings of itnerest&lt;/ins&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;/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;/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;pre&amp;gt;&amp;lt;nowiki&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;pre&amp;gt;&amp;lt;nowiki&amp;gt;&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=Extract-svn-id.xslt&amp;diff=7242&amp;oldid=prev</id>
		<title>Syd: fix entity references inside the &lt;pre&gt;&lt;nowiki&gt; so that they look right</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Extract-svn-id.xslt&amp;diff=7242&amp;oldid=prev"/>
		<updated>2010-01-31T19:06:15Z</updated>

		<summary type="html">&lt;p&gt;fix entity references inside the &amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt; so that they look right&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 19:06, 31 January 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-l14&quot; &gt;Line 14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&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;xd:doc&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;xd:doc&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;     &amp;lt;xd:desc&amp;gt;Output is text; we use the XHTML namespace as the default namespace not for the output,&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;xd:desc&amp;gt;Output is text; we use the XHTML namespace as the default namespace not for the output,&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;color: #222; 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;       but so that I can easily use the XHTML &amp;lt;tt&amp;gt;&amp;amp;lt;tt&amp;gt;&amp;lt;/tt&amp;gt; element in the documentation.&lt;/div&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;       but so that I can easily use the XHTML &amp;lt;tt&amp;gt;&amp;amp;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;amp;&lt;/ins&gt;lt;tt&amp;gt;&amp;lt;/tt&amp;gt; element in the documentation.&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;       :-)&amp;lt;/xd:desc&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;/xd:desc&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;   &amp;lt;/xd:doc&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;/xd:doc&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-l23&quot; &gt;Line 23:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&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;xd:p&amp;gt;&amp;lt;xd:b&amp;gt;extract-svn-id.xslt&amp;lt;/xd:b&amp;gt; — a routine to read in an XML file and write out the&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;xd:p&amp;gt;&amp;lt;xd:b&amp;gt;extract-svn-id.xslt&amp;lt;/xd:b&amp;gt; — a routine to read in an XML file and write out the&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;         Subversion &amp;lt;xd:b&amp;gt;Id&amp;lt;/xd:b&amp;gt; substituted keyword string, if present&amp;lt;/xd:p&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;         Subversion &amp;lt;xd:b&amp;gt;Id&amp;lt;/xd:b&amp;gt; substituted keyword string, if present&amp;lt;/xd:p&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;color: #222; 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;xd:p&amp;gt;The &amp;lt;xd:b&amp;gt;Id&amp;lt;/xd:b&amp;gt; is extracted from the &amp;lt;tt&amp;gt;&amp;amp;lt;editionStmt&amp;gt;&amp;lt;/tt&amp;gt; of the TEI header if&lt;/div&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;       &amp;lt;xd:p&amp;gt;The &amp;lt;xd:b&amp;gt;Id&amp;lt;/xd:b&amp;gt; is extracted from the &amp;lt;tt&amp;gt;&amp;amp;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;amp;&lt;/ins&gt;lt;editionStmt&amp;gt;&amp;lt;/tt&amp;gt; of the TEI header if&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;         one is present, or the first comment that has one.&amp;lt;/xd:p&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;         one is present, or the first comment that has one.&amp;lt;/xd:p&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;       &amp;lt;xd:p&amp;gt;If no Subversion &amp;lt;xd:b&amp;gt;Id&amp;lt;/xd:b&amp;gt; substituted keyword strings are found, nothing is&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;xd:p&amp;gt;If no Subversion &amp;lt;xd:b&amp;gt;Id&amp;lt;/xd:b&amp;gt; substituted keyword strings are found, nothing is&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-l62&quot; &gt;Line 62:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 62:&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;xd:p&amp;gt;look through the input file, and find a suitable substituted Subversion Id keyword&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;xd:p&amp;gt;look through the input file, and find a suitable substituted Subversion Id keyword&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;         string&amp;lt;/xd:p&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;         string&amp;lt;/xd:p&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;color: #222; 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;xd:p&amp;gt;First, try in the &amp;lt;tt&amp;gt;&amp;amp;lt;editionStmt&amp;gt;&amp;lt;/tt&amp;gt; with &amp;lt;tt&amp;gt;&amp;amp;lt;teiCorpus&amp;gt;&amp;lt;/tt&amp;gt; as root; then&lt;/div&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;       &amp;lt;xd:p&amp;gt;First, try in the &amp;lt;tt&amp;gt;&amp;amp;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;amp;&lt;/ins&gt;lt;editionStmt&amp;gt;&amp;lt;/tt&amp;gt; with &amp;lt;tt&amp;gt;&amp;amp;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;amp;&lt;/ins&gt;lt;teiCorpus&amp;gt;&amp;lt;/tt&amp;gt; as root; then&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;color: #222; 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;         in the &amp;lt;tt&amp;gt;&amp;amp;lt;editionStmt&amp;gt;&amp;lt;/tt&amp;gt; with &amp;lt;tt&amp;gt;&amp;amp;lt;TEI&amp;gt;&amp;lt;/tt&amp;gt; as root. Last, look in&lt;/div&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;         in the &amp;lt;tt&amp;gt;&amp;amp;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;amp;&lt;/ins&gt;lt;editionStmt&amp;gt;&amp;lt;/tt&amp;gt; with &amp;lt;tt&amp;gt;&amp;amp;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;amp;&lt;/ins&gt;lt;TEI&amp;gt;&amp;lt;/tt&amp;gt; as root. Last, look in&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;         comments.&amp;lt;/xd:p&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;         comments.&amp;lt;/xd:p&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;     &amp;lt;/xd:desc&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;/xd:desc&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-l124&quot; &gt;Line 124:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 124:&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;/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;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:XSLT]]&lt;/div&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;[[Category:XSLT&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]] [[Category:XSLT:1.0&lt;/ins&gt;]]&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=Extract-svn-id.xslt&amp;diff=7241&amp;oldid=prev</id>
		<title>Syd: New page: If you use Subversion, you may have set the SVN keywords property to include “Id” for some of your files. (This is done with &lt;code&gt;svn propset svn:keywords &quot;Id&quot; ''file …''&lt;/code&gt;, th...</title>
		<link rel="alternate" type="text/html" href="https://wiki.tei-c.org/index.php?title=Extract-svn-id.xslt&amp;diff=7241&amp;oldid=prev"/>
		<updated>2010-01-31T19:03:22Z</updated>

		<summary type="html">&lt;p&gt;New page: If you use Subversion, you may have set the SVN keywords property to include “Id” for some of your files. (This is done with &amp;lt;code&amp;gt;svn propset svn:keywords &amp;quot;Id&amp;quot; &amp;#039;&amp;#039;file …&amp;#039;&amp;#039;&amp;lt;/code&amp;gt;, th...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;If you use Subversion, you may have set the SVN keywords property to include “Id” for some of your files. (This is done with &amp;lt;code&amp;gt;svn propset svn:keywords &amp;quot;Id&amp;quot; ''file …''&amp;lt;/code&amp;gt;, then checking in the file(s).) This allows you to insert the keyword “&amp;lt;code&amp;gt;$I&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;d$&amp;lt;/code&amp;gt;” into your file, and Subversion will replace it with a string that includes some useful information (like revision number and timestamp). (I think the replacement occurs on checkout.)&lt;br /&gt;
&lt;br /&gt;
This XSLT 1.0 stylesheet will read in an XML file and look through the &amp;lt;tt&amp;gt;&amp;amp;lt;editionStmt&amp;gt;&amp;lt;/tt&amp;gt; and comments for such a string of useful information, and return only the string (or nothing, if one wasn’t found).&lt;br /&gt;
&lt;br /&gt;
Note that this looks like a big, complicated stylesheet, but in fact it is quite small and not that complex. It looks large because it is verbosely documented. It has only ~25 &amp;lt;tt&amp;gt;xsl:&amp;lt;/tt&amp;gt; elements, but ~41 documentation elements (&amp;lt;tt&amp;gt;xhtml&amp;lt;/tt&amp;gt; and oXygen’s &amp;lt;tt&amp;gt;xd:&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&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;1.0&amp;quot; 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;&lt;br /&gt;
  xmlns:xd=&amp;quot;http://www.oxygenxml.com/ns/doc/xsl&amp;quot;&lt;br /&gt;
  xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;xd:doc&amp;gt;&lt;br /&gt;
    &amp;lt;xd:desc&amp;gt;Output is text; we use the XHTML namespace as the default namespace not for the output,&lt;br /&gt;
      but so that I can easily use the XHTML &amp;lt;tt&amp;gt;&amp;amp;lt;tt&amp;gt;&amp;lt;/tt&amp;gt; element in the documentation.&lt;br /&gt;
      :-)&amp;lt;/xd:desc&amp;gt;&lt;br /&gt;
  &amp;lt;/xd:doc&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:output method=&amp;quot;text&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;xd:doc scope=&amp;quot;stylesheet&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;xd:desc&amp;gt;&lt;br /&gt;
      &amp;lt;xd:p&amp;gt;&amp;lt;xd:b&amp;gt;extract-svn-id.xslt&amp;lt;/xd:b&amp;gt; — a routine to read in an XML file and write out the&lt;br /&gt;
        Subversion &amp;lt;xd:b&amp;gt;Id&amp;lt;/xd:b&amp;gt; substituted keyword string, if present&amp;lt;/xd:p&amp;gt;&lt;br /&gt;
      &amp;lt;xd:p&amp;gt;The &amp;lt;xd:b&amp;gt;Id&amp;lt;/xd:b&amp;gt; is extracted from the &amp;lt;tt&amp;gt;&amp;amp;lt;editionStmt&amp;gt;&amp;lt;/tt&amp;gt; of the TEI header if&lt;br /&gt;
        one is present, or the first comment that has one.&amp;lt;/xd:p&amp;gt;&lt;br /&gt;
      &amp;lt;xd:p&amp;gt;If no Subversion &amp;lt;xd:b&amp;gt;Id&amp;lt;/xd:b&amp;gt; substituted keyword strings are found, nothing is&lt;br /&gt;
        returned.&amp;lt;/xd:p&amp;gt;&lt;br /&gt;
      &amp;lt;xd:p&amp;gt;&amp;lt;xd:b&amp;gt;written&amp;lt;/xd:b&amp;gt; 2010-01-31 by Syd Bauman&amp;lt;/xd:p&amp;gt;&lt;br /&gt;
      &amp;lt;xd:p&amp;gt;Copyright 2010 Syd Bauman and the Brown University Women Writers Project, some rights&lt;br /&gt;
        reserved&amp;lt;/xd:p&amp;gt;&lt;br /&gt;
      &amp;lt;xd:p&amp;gt;Available for download, copy, distribution, modification, distribution of modified&lt;br /&gt;
        versions, and use in other people’s products under the GNU General Public License, version&lt;br /&gt;
        3. (If that’s too restrictive for you, write.)&amp;lt;/xd:p&amp;gt;&lt;br /&gt;
    &amp;lt;/xd:desc&amp;gt;&lt;br /&gt;
  &amp;lt;/xd:doc&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;xd:doc&amp;gt;&lt;br /&gt;
    &amp;lt;xd:desc&amp;gt;Generate a key of comments that contain the string &amp;lt;xd:i&amp;gt;$Id:&amp;lt;/xd:i&amp;gt; followed by a&lt;br /&gt;
      blank. The index into the key is just the cardinal number of the comment. Thus, the Perlese&lt;br /&gt;
      expression to get the string value of the first such comment would be &amp;lt;tt&amp;gt;$SVN-Ids{'0'}&amp;lt;/tt&amp;gt;&lt;br /&gt;
      (except, of course, '-' is not a valid character in a Perl variable name).&amp;lt;/xd:desc&amp;gt;&lt;br /&gt;
  &amp;lt;/xd:doc&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:key name=&amp;quot;SVN-Ids&amp;quot; match=&amp;quot;//comment()[contains(normalize-space(.),'$Id: ')]&amp;quot;&lt;br /&gt;
    use=&amp;quot;count( preceding-sibling::comment() )&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;xd:doc&amp;gt;&lt;br /&gt;
    &amp;lt;xd:desc&amp;gt;On matching the root, get the Subversion Id string and hand it to &amp;lt;xd:ref&lt;br /&gt;
        name=&amp;quot;get_SVN-Id_itself&amp;quot; type=&amp;quot;template&amp;quot;/&amp;gt; to be parsed, using the output thereof as the&lt;br /&gt;
      output of the template (which, in turn, is the output of the entire stylesheet).&amp;lt;/xd:desc&amp;gt;&lt;br /&gt;
  &amp;lt;/xd:doc&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:template match=&amp;quot;/&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:call-template name=&amp;quot;get_SVN-Id_itself&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:with-param name=&amp;quot;node-string&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:call-template name=&amp;quot;get_SVN-Id_string&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/xsl:with-param&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:call-template&amp;gt;&lt;br /&gt;
  &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;xd:doc&amp;gt;&lt;br /&gt;
    &amp;lt;xd:desc&amp;gt;&lt;br /&gt;
      &amp;lt;xd:p&amp;gt;look through the input file, and find a suitable substituted Subversion Id keyword&lt;br /&gt;
        string&amp;lt;/xd:p&amp;gt;&lt;br /&gt;
      &amp;lt;xd:p&amp;gt;First, try in the &amp;lt;tt&amp;gt;&amp;amp;lt;editionStmt&amp;gt;&amp;lt;/tt&amp;gt; with &amp;lt;tt&amp;gt;&amp;amp;lt;teiCorpus&amp;gt;&amp;lt;/tt&amp;gt; as root; then&lt;br /&gt;
        in the &amp;lt;tt&amp;gt;&amp;amp;lt;editionStmt&amp;gt;&amp;lt;/tt&amp;gt; with &amp;lt;tt&amp;gt;&amp;amp;lt;TEI&amp;gt;&amp;lt;/tt&amp;gt; as root. Last, look in&lt;br /&gt;
        comments.&amp;lt;/xd:p&amp;gt;&lt;br /&gt;
    &amp;lt;/xd:desc&amp;gt;&lt;br /&gt;
    &amp;lt;xd:return&amp;gt;The entire text node containing the substituted Subversion Id keyword string, or (if&lt;br /&gt;
      none was found) the keyword &amp;lt;xd:i&amp;gt;IDUNNO&amp;lt;/xd:i&amp;gt;, as an xs:string&amp;lt;/xd:return&amp;gt;&lt;br /&gt;
  &amp;lt;/xd:doc&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:template name=&amp;quot;get_SVN-Id_string&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:choose&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:when&lt;br /&gt;
        test=&amp;quot;/tei:teiCorpus/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:editionStmt[contains(normalize-space(.),'$Id: ')]&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:value-of&lt;br /&gt;
          select=&amp;quot;normalize-space(/tei:teiCorpus/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:editionStmt)&amp;quot;&lt;br /&gt;
        /&amp;gt;&lt;br /&gt;
      &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:when&lt;br /&gt;
        test=&amp;quot;/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:editionStmt[contains(normalize-space(.),'$Id: ')]&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:value-of&lt;br /&gt;
          select=&amp;quot;normalize-space(/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:editionStmt)&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;
      &amp;lt;!--&lt;br /&gt;
        This is how you would look in comments *without* using a key: &lt;br /&gt;
      &amp;lt;xsl:when test=&amp;quot;//comment()[contains(normalize-space(.),'$Id: ')]&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:value-of select=&amp;quot;//comment()[contains(normalize-space(.),'$Id: ')][1]&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;
        I have no idea which way is better. --&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:when test=&amp;quot;key('SVN-Ids','0')&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:value-of select=&amp;quot;key('SVN-Ids','0')&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:otherwise&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;IDUNNO&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
      &amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:choose&amp;gt;&lt;br /&gt;
  &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;xd:doc&amp;gt;&lt;br /&gt;
    &amp;lt;xd:desc&amp;gt;Take the string that contains the Subversion substituted Id keyword, and parse the&lt;br /&gt;
      Subversion substituted Id keyword out of it. This is done by trimming off everything before&lt;br /&gt;
        &amp;lt;code&amp;gt;$Id: &amp;lt;/code&amp;gt; and after &amp;lt;code&amp;gt; $&amp;lt;/code&amp;gt;, and then tacking those strings back on the&lt;br /&gt;
      front and end of the remaining string.&amp;lt;/xd:desc&amp;gt;&lt;br /&gt;
    &amp;lt;xd:param&amp;gt;&amp;lt;xd:i&amp;gt;node-string&amp;lt;/xd:i&amp;gt; is the entire textual content of either the comment or&lt;br /&gt;
      element that was found by &amp;lt;xd:ref name=&amp;quot;get_SVN-Id_string&amp;quot; type=&amp;quot;template&amp;quot;/&amp;gt; as an&lt;br /&gt;
      xs:string&amp;lt;/xd:param&amp;gt;&lt;br /&gt;
    &amp;lt;xd:return&amp;gt;The Subversion substituted Id keyword extracted from &amp;lt;xd:i&amp;gt;node-string&amp;lt;/xd:i&amp;gt; (which&lt;br /&gt;
      may include other things besides the Subversion substituted Id keyword)&amp;lt;/xd:return&amp;gt;&lt;br /&gt;
  &amp;lt;/xd:doc&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:template name=&amp;quot;get_SVN-Id_itself&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:param name=&amp;quot;node-string&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:choose&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:when test=&amp;quot;$node-string='IDUNNO'&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:otherwise&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:variable name=&amp;quot;node-stringTrimStart&amp;quot; select=&amp;quot;substring-after($node-string,'$Id: ')&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:variable name=&amp;quot;node-stringTrimEnd&amp;quot;&lt;br /&gt;
          select=&amp;quot;substring-before($node-stringTrimStart,' $')&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:value-of select=&amp;quot;concat('$Id: ',$node-stringTrimEnd,' $&amp;amp;#x0A;')&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:choose&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;
&lt;br /&gt;
[[Category:XSLT]]&lt;/div&gt;</summary>
		<author><name>Syd</name></author>
		
	</entry>
</feed>