提交 a26603f6 编写于 作者: A Andrea Bolognani

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.
上级 f6332457
......@@ -57,9 +57,11 @@
<strong>
<xsl:value-of select="@title"/>
</strong>
<ul>
<xsl:apply-templates select="change"/>
</ul>
<xsl:if test="*">
<ul>
<xsl:apply-templates select="change"/>
</ul>
</xsl:if>
</li>
</xsl:template>
......
......@@ -23,19 +23,10 @@
<release version="FIXME" date="unreleased">
<section title="New features">
<change>
<summary/>
</change>
</section>
<section title="Improvements">
<change>
<summary/>
</change>
</section>
<section title="Bug fixes">
<change>
<summary/>
</change>
</section>
</release>
......@@ -44,19 +35,10 @@
<libvirt>
<release version="v3.3.0" date="unreleased">
<section title="New features">
<change>
<summary/>
</change>
</section>
<section title="Improvements">
<change>
<summary/>
</change>
</section>
<section title="Bug fixes">
<change>
<summary/>
</change>
</section>
</release>
<release version="v3.2.0" date="2017-04-02">
......
......@@ -35,21 +35,18 @@
<attribute name="title">
<data type="string"/>
</attribute>
<oneOrMore>
<zeroOrMore>
<ref name="change"/>
</oneOrMore>
</zeroOrMore>
</element>
</define>
<define name="change">
<element name="change">
<element name="summary">
<choice>
<data type="string">
<param name="pattern">\n[^\n]+\n +</param>
</data>
<empty/>
</choice>
<data type="string">
<param name="pattern">\n[^\n]+\n +</param>
</data>
</element>
<optional>
<element name="description">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册