1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-20 07:59:00 +00:00

news: Allow empty <section> elements

Creating dummy <change> elements was a workaround for the
HTML DTD not allowing empty <ul> elements, but we can do
better by tweaking the the XSLT stylesheet.
This commit is contained in:
Andrea Bolognani 2017-03-28 17:13:39 +02:00
parent f6332457b3
commit a26603f684
3 changed files with 10 additions and 29 deletions

View File

@ -57,9 +57,11 @@
<strong> <strong>
<xsl:value-of select="@title"/> <xsl:value-of select="@title"/>
</strong> </strong>
<ul> <xsl:if test="*">
<xsl:apply-templates select="change"/> <ul>
</ul> <xsl:apply-templates select="change"/>
</ul>
</xsl:if>
</li> </li>
</xsl:template> </xsl:template>

View File

@ -23,19 +23,10 @@
<release version="FIXME" date="unreleased"> <release version="FIXME" date="unreleased">
<section title="New features"> <section title="New features">
<change>
<summary/>
</change>
</section> </section>
<section title="Improvements"> <section title="Improvements">
<change>
<summary/>
</change>
</section> </section>
<section title="Bug fixes"> <section title="Bug fixes">
<change>
<summary/>
</change>
</section> </section>
</release> </release>
@ -44,19 +35,10 @@
<libvirt> <libvirt>
<release version="v3.3.0" date="unreleased"> <release version="v3.3.0" date="unreleased">
<section title="New features"> <section title="New features">
<change>
<summary/>
</change>
</section> </section>
<section title="Improvements"> <section title="Improvements">
<change>
<summary/>
</change>
</section> </section>
<section title="Bug fixes"> <section title="Bug fixes">
<change>
<summary/>
</change>
</section> </section>
</release> </release>
<release version="v3.2.0" date="2017-04-02"> <release version="v3.2.0" date="2017-04-02">

View File

@ -35,21 +35,18 @@
<attribute name="title"> <attribute name="title">
<data type="string"/> <data type="string"/>
</attribute> </attribute>
<oneOrMore> <zeroOrMore>
<ref name="change"/> <ref name="change"/>
</oneOrMore> </zeroOrMore>
</element> </element>
</define> </define>
<define name="change"> <define name="change">
<element name="change"> <element name="change">
<element name="summary"> <element name="summary">
<choice> <data type="string">
<data type="string"> <param name="pattern">\n[^\n]+\n +</param>
<param name="pattern">\n[^\n]+\n +</param> </data>
</data>
<empty/>
</choice>
</element> </element>
<optional> <optional>
<element name="description"> <element name="description">