Replace some tabs with spaces and remove trailing whitespace
This commit is contained in:
parent
9576759ed4
commit
cc1adb01b6
72
xsl/atom.xsl
72
xsl/atom.xsl
|
@ -13,50 +13,48 @@
|
||||||
<xsl:param name="g_root" required="yes" />
|
<xsl:param name="g_root" required="yes" />
|
||||||
|
|
||||||
<xsl:template match="//eventdefs">
|
<xsl:template match="//eventdefs">
|
||||||
<xsl:call-template name="atom">
|
<xsl:call-template name="atom">
|
||||||
<xsl:with-param name="title">Events</xsl:with-param>
|
<xsl:with-param name="title">Events</xsl:with-param>
|
||||||
<xsl:with-param name="uuid">006f667f-ecae-483a-8cbc-f0c5084dccb1</xsl:with-param>
|
<xsl:with-param name="uuid">006f667f-ecae-483a-8cbc-f0c5084dccb1</xsl:with-param>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="//newsdefs">
|
<xsl:template match="//newsdefs">
|
||||||
<xsl:call-template name="atom">
|
<xsl:call-template name="atom">
|
||||||
<xsl:with-param name="title">News</xsl:with-param>
|
<xsl:with-param name="title">News</xsl:with-param>
|
||||||
<xsl:with-param name="uuid">bdae3752-0cb7-4932-b176-019076389b54</xsl:with-param>
|
<xsl:with-param name="uuid">bdae3752-0cb7-4932-b176-019076389b54</xsl:with-param>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="atom">
|
<xsl:template name="atom">
|
||||||
<xsl:param name="title"/>
|
<xsl:param name="title"/>
|
||||||
<xsl:param name="uuid"/>
|
<xsl:param name="uuid"/>
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||||
<title>UW Computer Science Club <xsl:value-of select="$title"/></title>
|
<title>UW Computer Science Club <xsl:value-of select="$title"/></title>
|
||||||
<link href="http://csclub.uwaterloo.ca/{$title}.atom" rel="self"/>
|
<link href="http://csclub.uwaterloo.ca/{$title}.atom" rel="self"/>
|
||||||
<link href="http://csclub.uwaterloo.ca/"/>
|
<link href="http://csclub.uwaterloo.ca/"/>
|
||||||
<updated><xsl:value-of select="$g_date"/></updated>
|
<updated><xsl:value-of select="$g_date"/></updated>
|
||||||
<id>
|
<id>urn:uuid:<xsl:value-of select="$uuid"/></id>
|
||||||
urn:uuid:<xsl:value-of select="$uuid"/>
|
<author>
|
||||||
</id>
|
<name>University of Waterloo Computer Science Club</name>
|
||||||
<author>
|
</author>
|
||||||
<name>University of Waterloo Computer Science Club</name>
|
<xsl:for-each select="newsitem">
|
||||||
</author>
|
<entry>
|
||||||
<xsl:for-each select="newsitem">
|
<link href="http://csclub.uwaterloo.ca"/>
|
||||||
<entry>
|
<summary><xsl:value-of select="."/></summary>
|
||||||
<link href="http://csclub.uwaterloo.ca"/>
|
<author><xsl:value-of select="@author"/></author>
|
||||||
<summary><xsl:value-of select="."/></summary>
|
</entry>
|
||||||
<author><xsl:value-of select="@author"/></author>
|
</xsl:for-each>
|
||||||
</entry>
|
|
||||||
</xsl:for-each>
|
|
||||||
<xsl:for-each select="eventitem">
|
<xsl:for-each select="eventitem">
|
||||||
<entry>
|
<entry>
|
||||||
<title><xsl:value-of select="@title"/></title>
|
<title><xsl:value-of select="@title"/></title>
|
||||||
<!-- we do a hack here with the translate to get whitespace replacement -->
|
<!-- we do a hack here with the translate to get whitespace replacement -->
|
||||||
<link href="{concat('http://csclub.uwaterloo.ca/events/',translate(@room,' ','_'),'-',translate(@date,' ','_'),'-',translate(@time,' ','_'),'.html')}"/>
|
<link href="{concat('http://csclub.uwaterloo.ca/events/',translate(@room,' ','_'),'-',translate(@date,' ','_'),'-',translate(@time,' ','_'),'.html')}"/>
|
||||||
<author><xsl:value-of select="short"/></author>
|
<author><xsl:value-of select="short"/></author>
|
||||||
<summary><xsl:value-of select="abstract"/></summary>
|
<summary><xsl:value-of select="abstract"/></summary>
|
||||||
</entry>
|
</entry>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</feed>
|
</feed>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
|
@ -62,8 +62,8 @@
|
||||||
<xsl:sort select="translate(@date, '-', '')"
|
<xsl:sort select="translate(@date, '-', '')"
|
||||||
order="descending" data-type="number" />
|
order="descending" data-type="number" />
|
||||||
<xsl:if test="not(preceding-sibling::*[csc:term(@date)=csc:term(current()/@date)]) and not(csc:term(@date) = csc:term($g_date))">
|
<xsl:if test="not(preceding-sibling::*[csc:term(@date)=csc:term(current()/@date)]) and not(csc:term(@date) = csc:term($g_date))">
|
||||||
<p><a href="{translate(concat('old-', csc:term(@date), '.html'), ' ', '_')}">
|
<p><a href="{translate(concat('old-', csc:term(@date), '.html'), ' ', '_')}">
|
||||||
<xsl:value-of select="csc:term(@date)" />
|
<xsl:value-of select="csc:term(@date)" />
|
||||||
</a></p>
|
</a></p>
|
||||||
<xsl:result-document method="xml" encoding="ISO-8859-1"
|
<xsl:result-document method="xml" encoding="ISO-8859-1"
|
||||||
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
|
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
|
Loading…
Reference in New Issue