Remove sed xmlns hack

This commit is contained in:
David Bartley 2007-10-09 04:27:03 -04:00
parent c7fe29e320
commit 8ae2160f7a
5 changed files with 2 additions and 13 deletions

View File

@ -29,11 +29,9 @@ CLASSPATH = /users/www/saxon8/saxon8.jar
$(OUTDIR)%.html: %.xml $(ROOT)/csc.dtd $(ROOT)/xsl/*.xsl directory.xml $(OUTDIR)%.html: %.xml $(ROOT)/csc.dtd $(ROOT)/xsl/*.xsl directory.xml
java -classpath $(CLASSPATH) net.sf.saxon.Transform -o $@ $< $(ROOT)/xsl/html.xsl $(XSLTARGS) java -classpath $(CLASSPATH) net.sf.saxon.Transform -o $@ $< $(ROOT)/xsl/html.xsl $(XSLTARGS)
sed -i 's| xmlns=""||' $@
$(OUTDIR)%.atom: %.xml xsl/atom.xsl $(OUTDIR)%.atom: %.xml xsl/atom.xsl
java -classpath $(CLASSPATH) net.sf.saxon.Transform -o $@ $< $(ROOT)/xsl/atom.xsl $(XSLTARGS) java -classpath $(CLASSPATH) net.sf.saxon.Transform -o $@ $< $(ROOT)/xsl/atom.xsl $(XSLTARGS)
sed -i 's| xmlns=""||' $@
$(OUTDIR)%.ics: %.xml $(OUTDIR)%.ics: %.xml
perl scripts/xml2ics.pl $< > $@ perl scripts/xml2ics.pl $< > $@

View File

@ -2,7 +2,4 @@ FILES = index.html old.html
RELDIR = events/ RELDIR = events/
include ../common.mk include ../common.mk
build:
sed -i 's| xmlns=""||' $(OUTDIR)*.html
$(OUTDIR)index.html: ../events.xml $(OUTDIR)index.html: ../events.xml

View File

@ -4,6 +4,3 @@ include ../common.mk
$(OUTDIR)flash: $(OUTDIR)flash:
ln -s ../flash $(OUTDIR)flash ln -s ../flash $(OUTDIR)flash
build:
sed -i 's| xmlns=""||' $(OUTDIR)*.html

View File

@ -2,7 +2,4 @@ FILES = index.html
RELDIR = news/ RELDIR = news/
include ../common.mk include ../common.mk
build:
sed -i 's| xmlns=""||' $(OUTDIR)*.html
$(OUTDIR)index.html: ../news.xml $(OUTDIR)index.html: ../news.xml

View File

@ -45,10 +45,10 @@
<xsl:include href="media.xsl" /> <xsl:include href="media.xsl" />
<xsl:template match="*"> <xsl:template match="*">
<xsl:copy> <xsl:element name="{name()}">
<xsl:copy-of select="@*" /> <xsl:copy-of select="@*" />
<xsl:apply-templates /> <xsl:apply-templates />
</xsl:copy> </xsl:element>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>