Don't output xmlns attributes except on root element
This commit is contained in:
parent
94d27cb2bf
commit
94051e3c05
|
@ -1,9 +1,12 @@
|
||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
|
|
||||||
<xsl:stylesheet version="1.1"
|
<xsl:stylesheet version="1.1"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc">
|
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc"
|
||||||
|
xmlns="http://www.w3.org/2005/Atom"
|
||||||
|
exclude-result-prefixes="csc">
|
||||||
|
|
||||||
|
<xsl:output method="xml" encoding="ISO-8859-1" />
|
||||||
|
|
||||||
<xsl:param name="g_datetime" required="yes" />
|
<xsl:param name="g_datetime" required="yes" />
|
||||||
|
|
||||||
|
@ -27,7 +30,7 @@
|
||||||
<xsl:param name="title"/>
|
<xsl:param name="title"/>
|
||||||
<xsl:param name="feedfile"/>
|
<xsl:param name="feedfile"/>
|
||||||
<xsl:param name="uuid"/>
|
<xsl:param name="uuid"/>
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
<feed>
|
||||||
<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/{$feedfile}" rel="self"/>
|
<link href="http://csclub.uwaterloo.ca/{$feedfile}" rel="self"/>
|
||||||
<link href="http://csclub.uwaterloo.ca/"/>
|
<link href="http://csclub.uwaterloo.ca/"/>
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
|
|
||||||
<xsl:stylesheet version="1.1"
|
<xsl:stylesheet version="1.1"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc">
|
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc"
|
||||||
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
|
exclude-result-prefixes="csc">
|
||||||
|
<xsl:output method="xml" />
|
||||||
|
|
||||||
<xsl:template match="cscpage">
|
<xsl:template match="cscpage">
|
||||||
<html>
|
<html>
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
|
|
||||||
<xsl:stylesheet version="1.1"
|
<xsl:stylesheet version="1.1"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc">
|
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc"
|
||||||
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
|
exclude-result-prefixes="csc">
|
||||||
|
<xsl:output method="xml" />
|
||||||
|
|
||||||
<xsl:template match="directory">
|
<xsl:template match="directory">
|
||||||
<xsl:variable name="href">
|
<xsl:variable name="href">
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
|
|
||||||
<xsl:stylesheet version="1.1"
|
<xsl:stylesheet version="1.1"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc">
|
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc"
|
||||||
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
|
exclude-result-prefixes="csc">
|
||||||
|
<xsl:output method="xml" />
|
||||||
|
|
||||||
<xsl:template name="events">
|
<xsl:template name="events">
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
|
|
||||||
<xsl:stylesheet version="1.1"
|
<xsl:stylesheet version="1.1"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc">
|
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc"
|
||||||
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
|
exclude-result-prefixes="csc">
|
||||||
|
<xsl:output method="xml" />
|
||||||
|
|
||||||
<xsl:template name="donate-now">
|
<xsl:template name="donate-now">
|
||||||
<p>Please consider <a href="{$g_pre}about/donations.html">donating to the
|
<p>Please consider <a href="{$g_pre}about/donations.html">donating to the
|
||||||
|
|
13
xsl/html.xsl
13
xsl/html.xsl
|
@ -1,9 +1,14 @@
|
||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
|
|
||||||
<xsl:stylesheet version="1.1"
|
<xsl:stylesheet version="1.1"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc">
|
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" />
|
||||||
|
|
||||||
<xsl:param name="g_date" required="yes" />
|
<xsl:param name="g_date" required="yes" />
|
||||||
<xsl:param name="g_time" required="yes" />
|
<xsl:param name="g_time" required="yes" />
|
||||||
|
@ -29,10 +34,6 @@
|
||||||
<xsl:variable name="g_mirror_csc">http://csclub.uwaterloo.ca/files/</xsl:variable>
|
<xsl:variable name="g_mirror_csc">http://csclub.uwaterloo.ca/files/</xsl:variable>
|
||||||
<xsl:variable name="g_mirror_cs">http://mirror.cs.uwaterloo.ca/csclub/</xsl:variable>
|
<xsl:variable name="g_mirror_cs">http://mirror.cs.uwaterloo.ca/csclub/</xsl:variable>
|
||||||
|
|
||||||
<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" />
|
|
||||||
|
|
||||||
<!-- include additional style sheets -->
|
<!-- include additional style sheets -->
|
||||||
<xsl:include href="functions.xsl" />
|
<xsl:include href="functions.xsl" />
|
||||||
<xsl:include href="common.xsl" />
|
<xsl:include href="common.xsl" />
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
|
|
||||||
<xsl:stylesheet version="1.1"
|
<xsl:stylesheet version="1.1"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc">
|
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc"
|
||||||
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
|
exclude-result-prefixes="csc">
|
||||||
|
<xsl:output method="xml" />
|
||||||
|
|
||||||
<xsl:template match="mediafile">
|
<xsl:template match="mediafile">
|
||||||
<xsl:param name="ext" />
|
<xsl:param name="ext" />
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
|
|
||||||
<xsl:stylesheet version="1.1"
|
<xsl:stylesheet version="1.1"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc">
|
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc"
|
||||||
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
|
exclude-result-prefixes="csc">
|
||||||
|
<xsl:output method="xml" />
|
||||||
|
|
||||||
<xsl:template match="members-this-term">
|
<xsl:template match="members-this-term">
|
||||||
<p>The members for <xsl:value-of select="csc:term($g_date)" /> are
|
<p>The members for <xsl:value-of select="csc:term($g_date)" /> are
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
|
|
||||||
<xsl:stylesheet version="1.1"
|
<xsl:stylesheet version="1.1"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc">
|
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc"
|
||||||
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
|
exclude-result-prefixes="csc">
|
||||||
|
<xsl:output method="xml" />
|
||||||
|
|
||||||
<xsl:template match="menuitem">
|
<xsl:template match="menuitem">
|
||||||
<xsl:variable name="preabs">
|
<xsl:variable name="preabs">
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
|
|
||||||
<xsl:stylesheet version="1.1"
|
<xsl:stylesheet version="1.1"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc">
|
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc"
|
||||||
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
|
exclude-result-prefixes="csc">
|
||||||
|
<xsl:output method="xml" />
|
||||||
|
|
||||||
<xsl:template match="newsdefs">
|
<xsl:template match="newsdefs">
|
||||||
<xsl:apply-templates select="newsitem[csc:term(@date) = csc:term($g_date)]">
|
<xsl:apply-templates select="newsitem[csc:term(@date) = csc:term($g_date)]">
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
<?xml version='1.0'?>
|
<?xml version='1.0'?>
|
||||||
|
|
||||||
<xsl:stylesheet version="1.1"
|
<xsl:stylesheet version="1.1"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc">
|
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc"
|
||||||
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
|
exclude-result-prefixes="csc">
|
||||||
|
<xsl:output method="xml" />
|
||||||
|
|
||||||
<xsl:template match="positions">
|
<xsl:template match="positions">
|
||||||
<xsl:variable name="exec" select="@exec" />
|
<xsl:variable name="exec" select="@exec" />
|
||||||
|
|
Loading…
Reference in New Issue