Don't output xmlns attributes except on root element
authorDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Thu, 22 Nov 2007 09:15:42 +0000 (04:15 -0500)
committerDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Thu, 22 Nov 2007 09:49:00 +0000 (04:49 -0500)
xsl/atom.xsl
xsl/common.xsl
xsl/directory.xsl
xsl/events.xsl
xsl/functions.xsl
xsl/html.xsl
xsl/media.xsl
xsl/members.xsl
xsl/menu.xsl
xsl/news.xsl
xsl/positions.xsl

index 994ad3a..93d1b1a 100644 (file)
@@ -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/"/>
index 56bf15d..3767c7f 100644 (file)
@@ -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>
index 753987c..657feaa 100644 (file)
@@ -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">
index 4e59dbb..2ed9ff4 100644 (file)
@@ -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>
index eb4ee0f..358f3ea 100644 (file)
@@ -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
index baa2efd..adf905b 100644 (file)
@@ -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" />
 <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" />
index cc2c98a..30a8926 100644 (file)
@@ -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" />
index e92bbe3..b168929 100644 (file)
@@ -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
index ae400ac..9993455 100644 (file)
@@ -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">
index d5c523b..fa3640b 100644 (file)
@@ -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)]">
index 65f34f1..f317953 100644 (file)
@@ -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" />