diff --git a/Makefile b/Makefile
index c722388..1542caf 100755
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,12 @@
INPUTS = index.xml
SUBDIRS = about events docs office
+# the following two rules are there so cow gets built first.
+cow-first: recurse-cow all
+
+recurse-cow:
+ cd cow && $(MAKE) && cd ..
+
include default.mk
default.mk: default.mk.in
diff --git a/cow/functions.c b/cow/functions.c
index a7902bc..1d73860 100755
--- a/cow/functions.c
+++ b/cow/functions.c
@@ -14,13 +14,11 @@ void extension_cow_term(xmlXPathParserContextPtr ctxt,
xmlChar *str, *ret;
int str_l, month;
- DEBUG_PRINT("term");
if (nargs != 1) {
xmlXPathSetArityError(ctxt);
}
str = xmlXPathPopString(ctxt);
str_l = xmlUTF8Strlen(str);
- DEBUG_PRINT(str);
month = (str[5] - '0')*10 + (str[6] - '0');
@@ -34,7 +32,6 @@ void extension_cow_term(xmlXPathParserContextPtr ctxt,
void *extension_init_func(xsltTransformContextPtr ctxt,
const xmlChar *URI)
{
- DEBUG_PRINT("Extension init");
return 0;
}
@@ -42,12 +39,10 @@ void extension_shutdown_func(xsltTransformContextPtr ctxt,
const xmlChar *URI,
void *data)
{
- DEBUG_PRINT("Extension shut down");
}
void init_extensions()
{
- DEBUG_PRINT("Registering extension module.");
xsltRegisterExtModule(COW_URI,
extension_init_func, extension_shutdown_func);
xsltRegisterExtModuleFunction((const xmlChar*)"term", COW_URI,
diff --git a/csc.dtd b/csc.dtd
index df27fca..a99da44 100755
--- a/csc.dtd
+++ b/csc.dtd
@@ -27,7 +27,6 @@
date CDATA #REQUIRED
time CDATA #REQUIRED
room CDATA #REQUIRED
- term CDATA #REQUIRED
title CDATA #REQUIRED>
diff --git a/cscweb.xsl b/cscweb.xsl
index 229bbb9..3ab8ff5 100755
--- a/cscweb.xsl
+++ b/cscweb.xsl
@@ -215,7 +215,7 @@
order="ascending"
data-type="number"/>
+