From e9d9d40458396a265cd46277df6edc7eeeec41ea Mon Sep 17 00:00:00 2001 From: David Bartley Date: Sun, 12 Aug 2007 16:06:22 -0400 Subject: [PATCH] Forced correct (non-uw) url to be used in digg/reddit/etc... buttons. Added stroustrup media page stub. --- cscweb.xsl | 1 + xsl/books.xsl | 1 + xsl/common.xsl | 1 + xsl/directory.xsl | 1 + xsl/events.xsl | 1 + xsl/exec.xsl | 1 + xsl/functions.xsl | 1 + xsl/media.xsl | 19 ++++++++++++++----- xsl/members.xsl | 1 + xsl/menu.xsl | 1 + 10 files changed, 23 insertions(+), 5 deletions(-) diff --git a/cscweb.xsl b/cscweb.xsl index e6d129a..0fa469e 100644 --- a/cscweb.xsl +++ b/cscweb.xsl @@ -4,6 +4,7 @@ xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:csc="http://www.csclub.uwaterloo.ca/xslt"> diff --git a/xsl/books.xsl b/xsl/books.xsl index 8b07488..1e3a4c7 100644 --- a/xsl/books.xsl +++ b/xsl/books.xsl @@ -4,6 +4,7 @@ xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:csc="http://www.csclub.uwaterloo.ca/xslt"> diff --git a/xsl/common.xsl b/xsl/common.xsl index 7d2d1b7..9e6ab86 100644 --- a/xsl/common.xsl +++ b/xsl/common.xsl @@ -4,6 +4,7 @@ xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:csc="http://www.csclub.uwaterloo.ca/xslt"> diff --git a/xsl/directory.xsl b/xsl/directory.xsl index 9b213d1..f9dca0e 100644 --- a/xsl/directory.xsl +++ b/xsl/directory.xsl @@ -4,6 +4,7 @@ xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:csc="http://www.csclub.uwaterloo.ca/xslt"> diff --git a/xsl/events.xsl b/xsl/events.xsl index 0f54831..7c490ef 100644 --- a/xsl/events.xsl +++ b/xsl/events.xsl @@ -4,6 +4,7 @@ xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:csc="http://www.csclub.uwaterloo.ca/xslt"> diff --git a/xsl/exec.xsl b/xsl/exec.xsl index 17de9e6..5986e7b 100644 --- a/xsl/exec.xsl +++ b/xsl/exec.xsl @@ -4,6 +4,7 @@ xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:csc="http://www.csclub.uwaterloo.ca/xslt"> diff --git a/xsl/functions.xsl b/xsl/functions.xsl index 2d91a73..e0ce8fe 100644 --- a/xsl/functions.xsl +++ b/xsl/functions.xsl @@ -4,6 +4,7 @@ xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:csc="http://www.csclub.uwaterloo.ca/xslt"> diff --git a/xsl/media.xsl b/xsl/media.xsl index 5805ca5..ca5d3a5 100644 --- a/xsl/media.xsl +++ b/xsl/media.xsl @@ -4,6 +4,7 @@ xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:csc="http://www.csclub.uwaterloo.ca/xslt"> @@ -51,10 +52,11 @@ + + href="{concat($g_root, '/media/', @title, $suffix, '.html')}"> <xsl:value-of select="@title" /> @@ -94,14 +96,21 @@ - +

+ - + +
@@ -111,7 +120,7 @@
diff --git a/xsl/members.xsl b/xsl/members.xsl index d9ec509..33f3486 100644 --- a/xsl/members.xsl +++ b/xsl/members.xsl @@ -4,6 +4,7 @@ xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:csc="http://www.csclub.uwaterloo.ca/xslt"> diff --git a/xsl/menu.xsl b/xsl/menu.xsl index 6602144..ebdc7ec 100644 --- a/xsl/menu.xsl +++ b/xsl/menu.xsl @@ -4,6 +4,7 @@ xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:csc="http://www.csclub.uwaterloo.ca/xslt">