www/xsl/html.xsl

55 lines
1.6 KiB
XML
Raw Normal View History

2002-03-11 15:39:54 -05:00
<?xml version='1.0'?>
2007-11-22 03:44:33 -05:00
<xsl:stylesheet version="1.1"
2007-08-11 04:26:38 -04:00
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc"
xmlns="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="csc">
<xsl:output method="xml" encoding="ISO-8859-1"
doctype-public="-//W3C//DTD XHTML 1.1//EN"
doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
2007-08-11 04:26:38 -04:00
<xsl:param name="g_date" required="yes" />
<xsl:param name="g_time" required="yes" />
<xsl:param name="g_pwd" required="yes" />
<xsl:param name="g_root" required="yes" />
<xsl:param name="g_outdir" required="yes" />
2002-03-11 15:39:54 -05:00
<!--
2007-09-29 21:58:00 -04:00
Set global "g_pre" variable based on /cscpage/@pre, which represents the
relative path needed to get to the root. If you do not include a "pre"
attribute on cscpage then the "pre" attribute will default to "../".
-->
2007-09-29 21:58:00 -04:00
<xsl:variable name="g_pre">
<xsl:choose>
<xsl:when test="/cscpage/@pre"><xsl:value-of select="/cscpage/@pre" /></xsl:when>
<xsl:otherwise>../</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- mirror variables -->
2008-06-12 16:02:09 -04:00
<xsl:variable name="g_mirror">http://mirror.csclub.uwaterloo.ca/csclub/</xsl:variable>
<!-- include additional style sheets -->
<xsl:include href="functions.xsl" />
<xsl:include href="common.xsl" />
<xsl:include href="directory.xsl" />
<xsl:include href="menu.xsl" />
<xsl:include href="positions.xsl" />
<xsl:include href="members.xsl" />
<xsl:include href="events.xsl" />
<xsl:include href="news.xsl" />
<xsl:include href="media.xsl" />
2002-03-11 15:39:54 -05:00
<xsl:template match="*">
2007-10-09 04:27:03 -04:00
<xsl:element name="{name()}">
<xsl:copy-of select="@*" />
<xsl:apply-templates />
2007-10-09 04:27:03 -04:00
</xsl:element>
2002-03-11 15:39:54 -05:00
</xsl:template>
</xsl:stylesheet>