diff --git a/Makefile b/Makefile index 08e9b1e..4baecd3 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ INPUTS = index.xml SUBDIRS = about events office news services media -first: noroot events.ics members.xml all +first: noroot events.ics members.xml events.atom news.atom all find ! -regex '.*/\..*' -type f ! -perm -0664 -print0 | xargs -r0 chmod u=rwX,g=rwX,o=rX || true find ! -regex '.*/\..*' -type d ! -perm 2775 -print0 | xargs -r0 chmod 2775 || true find ! -regex '.*/\..*' -type d ! -group www -print0 | xargs -r0 chgrp www || true @@ -20,6 +20,10 @@ events.ics: include default.mk +%.atom: %.xml + java -classpath $(CLASSPATH) net.sf.saxon.Transform -o $@ $< $(ROOT)/xsl/atom.xsl $(XSLTARGS) + sed -i 's| xmlns=""||' $@ + default.mk: default.mk.in echo 'ROOT = '`pwd` > $@ cat $< >> $@ diff --git a/events.xml b/events.xml index 6dbbeae..6c62103 100644 --- a/events.xml +++ b/events.xml @@ -1,3 +1,4 @@ + diff --git a/xsl/atom.xsl b/xsl/atom.xsl new file mode 100644 index 0000000..a1b00a0 --- /dev/null +++ b/xsl/atom.xsl @@ -0,0 +1,66 @@ + + + + + + + + + + + +Events +006f667f-ecae-483a-8cbc-f0c5084dccb1 + + + + + +News +bdae3752-0cb7-4932-b176-019076389b54 + + + + + + + + + + UW Computer Science Club <xsl:value-of select="$title"/> + + + + + urn:uuid: + + + University of Waterloo Computer Science Club + + + + + + + + + <xsl:value-of select="//short"/> + + + + + + + + + + + + +