Adjustements for non-versioned packages:

- allows xorg-env to be a dependency although it is a sect2 id
- remove the ban on xorg-env in dependencies.xsl
- directly call the template mode="normal" for modules, since there are
  no special cases in this case.
- treat all sect1 s, even if they do not have a xreflabel.
This commit is contained in:
Pierre Labastie 2015-11-18 10:54:13 +00:00
parent 7dc8595523
commit 82bd7a6423
3 changed files with 10 additions and 9 deletions

View file

@ -78,8 +78,13 @@ cat >$SPECIAL_FILE << EOF
<xsl:text>&#xA; </xsl:text> <xsl:text>&#xA; </xsl:text>
</package><xsl:text>&#xA;</xsl:text> </package><xsl:text>&#xA;</xsl:text>
</xsl:when> </xsl:when>
<!-- Although versioned, this page is not a package --> <!-- Although versioned, this page is not a package. But
<xsl:when test="@id='xorg7'"/> the sect2 with id "xorg-env" is referred to at several
places in the book. We have added it to the list of non
versioned packages. -->
<xsl:when test="@id='xorg7'">
<xsl:apply-templates select="child::sect2" mode="special"/>
</xsl:when>
EOF EOF
# Non-versionned packages. Add to NV_LIST if you need more. # Non-versionned packages. Add to NV_LIST if you need more.

View file

@ -55,7 +55,6 @@
<xsl:param name="priority"/> <xsl:param name="priority"/>
<xsl:variable name="depname"> <xsl:variable name="depname">
<xsl:choose> <xsl:choose>
<xsl:when test="@name='xorg-env'"/>
<xsl:when test="@name='x-window-system'">xinit</xsl:when> <xsl:when test="@name='x-window-system'">xinit</xsl:when>
<xsl:when test="@name='xorg7'">xinit</xsl:when> <xsl:when test="@name='xorg7'">xinit</xsl:when>
<xsl:when test="@name='server-mail'"> <xsl:when test="@name='server-mail'">

View file

@ -64,7 +64,7 @@
<xsl:value-of select="title"/> <xsl:value-of select="title"/>
</xsl:element> </xsl:element>
<xsl:text>&#xA;</xsl:text> <xsl:text>&#xA;</xsl:text>
<xsl:apply-templates select=".//sect1[@xreflabel]"> <xsl:apply-templates select=".//sect1">
<xsl:sort select="@id"/> <xsl:sort select="@id"/>
</xsl:apply-templates> </xsl:apply-templates>
<xsl:text> </xsl:text> <xsl:text> </xsl:text>
@ -92,17 +92,14 @@
<xsl:value-of select="title"/> <xsl:value-of select="title"/>
</xsl:element> </xsl:element>
<xsl:text>&#xA;</xsl:text> <xsl:text>&#xA;</xsl:text>
<!-- Do not use .//*, which would include self. <!-- Do not use .//*, which would include self. -->
Calls the template of specialCases.xsl,
which calls the "normal" template when the
case is normal. -->
<xsl:apply-templates <xsl:apply-templates
select="descendant::node()[contains(translate(@xreflabel, select="descendant::node()[contains(translate(@xreflabel,
'123456789', '123456789',
'000000000'), '000000000'),
'-0') '-0')
]" ]"
mode="special"> mode="normal">
<xsl:sort select="@id"/> <xsl:sort select="@id"/>
</xsl:apply-templates> </xsl:apply-templates>
<xsl:text> </xsl:text> <xsl:text> </xsl:text>