Don't output xmlns attributes except on root element

news-update
David Bartley 15 years ago
parent 94d27cb2bf
commit 94051e3c05
  1. 9
      xsl/atom.xsl
  2. 6
      xsl/common.xsl
  3. 6
      xsl/directory.xsl
  4. 6
      xsl/events.xsl
  5. 6
      xsl/functions.xsl
  6. 13
      xsl/html.xsl
  7. 6
      xsl/media.xsl
  8. 6
      xsl/members.xsl
  9. 6
      xsl/menu.xsl
  10. 6
      xsl/news.xsl
  11. 6
      xsl/positions.xsl

@ -1,9 +1,12 @@
<?xml version='1.0'?>
<xsl:stylesheet version="1.1"
xmlns="http://www.w3.org/1999/xhtml"
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" />
@ -27,7 +30,7 @@
<xsl:param name="title"/>
<xsl:param name="feedfile"/>
<xsl:param name="uuid"/>
<feed xmlns="http://www.w3.org/2005/Atom">
<feed>
<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/"/>

@ -1,9 +1,11 @@
<?xml version='1.0'?>
<xsl:stylesheet version="1.1"
xmlns="http://www.w3.org/1999/xhtml"
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">
<html>

@ -1,9 +1,11 @@
<?xml version='1.0'?>
<xsl:stylesheet version="1.1"
xmlns="http://www.w3.org/1999/xhtml"
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:variable name="href">

@ -1,9 +1,11 @@
<?xml version='1.0'?>
<xsl:stylesheet version="1.1"
xmlns="http://www.w3.org/1999/xhtml"
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">
<tr>

@ -1,9 +1,11 @@
<?xml version='1.0'?>
<xsl:stylesheet version="1.1"
xmlns="http://www.w3.org/1999/xhtml"
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">
<p>Please consider <a href="{$g_pre}about/donations.html">donating to the

@ -1,9 +1,14 @@
<?xml version='1.0'?>
<xsl:stylesheet version="1.1"
xmlns="http://www.w3.org/1999/xhtml"
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_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_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 -->
<xsl:include href="functions.xsl" />
<xsl:include href="common.xsl" />

@ -1,9 +1,11 @@
<?xml version='1.0'?>
<xsl:stylesheet version="1.1"
xmlns="http://www.w3.org/1999/xhtml"
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:param name="ext" />

@ -1,9 +1,11 @@
<?xml version='1.0'?>
<xsl:stylesheet version="1.1"
xmlns="http://www.w3.org/1999/xhtml"
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">
<p>The members for <xsl:value-of select="csc:term($g_date)" /> are

@ -1,9 +1,11 @@
<?xml version='1.0'?>
<xsl:stylesheet version="1.1"
xmlns="http://www.w3.org/1999/xhtml"
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:variable name="preabs">

@ -1,9 +1,11 @@
<?xml version='1.0'?>
<xsl:stylesheet version="1.1"
xmlns="http://www.w3.org/1999/xhtml"
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:apply-templates select="newsitem[csc:term(@date) = csc:term($g_date)]">

@ -1,9 +1,11 @@
<?xml version='1.0'?>
<xsl:stylesheet version="1.1"
xmlns="http://www.w3.org/1999/xhtml"
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:variable name="exec" select="@exec" />

Loading…
Cancel
Save