all: ppid.sxw search.sxw
%.html: %.xml cr_to_oo_html.xsl
xsltproc cr_to_oo_html.xsl $< > $@
%.sxw: %.xml cr_to_oo_xml.xsl
cp template.sxw /tmp
cd /tmp;rm -Rf template_sxw;oo_unpack template.sxw
xsltproc cr_to_oo_xml.xsl $< > content.xml
perl -i -pe 's/DOCTYPE document-content/DOCTYPE office:document-content/' content.xml
cp content.xml /tmp/template_sxw/
cp styles.xml /tmp/template_sxw/
cd /tmp;oo_pack template_sxw;mv template.sxw $@
cp /tmp/$@ ./