mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 19:41:16 +00:00
docs: news: remove sed sorcery
Set a default namespace in the stylesheet instead. Signed-off-by: Ján Tomko <jtomko@redhat.com> Acked-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
ca12af4915
commit
7e431a521c
@ -236,20 +236,14 @@ $(srcdir)/hvsupport.html.in: $(srcdir)/hvsupport.pl $(api_DATA) \
|
|||||||
$(AM_V_GEN)$(PERL) $(srcdir)/hvsupport.pl $(top_srcdir)/src > $@ \
|
$(AM_V_GEN)$(PERL) $(srcdir)/hvsupport.pl $(top_srcdir)/src > $@ \
|
||||||
|| { rm $@ && exit 1; }
|
|| { rm $@ && exit 1; }
|
||||||
|
|
||||||
# xsltproc seems to add the xmlns="" attribute to random output elements:
|
|
||||||
# use sed to strip it out, as leaving it there triggers XML errors during
|
|
||||||
# further transformation steps
|
|
||||||
news.html.in: \
|
news.html.in: \
|
||||||
$(srcdir)/news.xml \
|
$(srcdir)/news.xml \
|
||||||
$(srcdir)/news-html.xsl
|
$(srcdir)/news-html.xsl
|
||||||
$(AM_V_GEN)$(XSLTPROC) --nonet \
|
$(AM_V_GEN)$(XSLTPROC) --nonet \
|
||||||
$(srcdir)/news-html.xsl \
|
$(srcdir)/news-html.xsl \
|
||||||
$(srcdir)/news.xml \
|
$(srcdir)/news.xml \
|
||||||
>$@-tmp \
|
>$@ \
|
||||||
|| { rm -f $@-tmp; exit 1; }; \
|
|| { rm -f $@; exit 1; };
|
||||||
sed 's/ xmlns=""//g' $@-tmp >$@ \
|
|
||||||
|| { rm -f $@-tmp; exit 1; }; \
|
|
||||||
rm -f $@-tmp
|
|
||||||
EXTRA_DIST += \
|
EXTRA_DIST += \
|
||||||
$(srcdir)/news.xml \
|
$(srcdir)/news.xml \
|
||||||
$(srcdir)/news.rng \
|
$(srcdir)/news.rng \
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
<xsl:stylesheet version="1.0"
|
||||||
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||||
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
|
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
|
||||||
|
|
||||||
<!-- This XSLT stylesheet can be applied to the XML version of the release
|
<!-- This XSLT stylesheet can be applied to the XML version of the release
|
||||||
|
Loading…
Reference in New Issue
Block a user