Further deps modifications
in order to be sure that the preceding page is a dep in the X chapter
This commit is contained in:
parent
14a3e908c2
commit
0a661b663c
1 changed files with 26 additions and 14 deletions
|
@ -207,11 +207,22 @@
|
||||||
preceding-sibling::sect1[@id != 'xorg7'])">
|
preceding-sibling::sect1[@id != 'xorg7'])">
|
||||||
<xsl:text>
|
<xsl:text>
|
||||||
</xsl:text>
|
</xsl:text>
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="contains(preceding-sibling::sect1[1]/@id,
|
||||||
|
'xorg7-') and not(@id='printproto')">
|
||||||
|
<xsl:call-template name="expand-deps">
|
||||||
|
<xsl:with-param name="section">
|
||||||
|
<xsl:value-of select="preceding-sibling::sect1[1]/@id"/>
|
||||||
|
</xsl:with-param>
|
||||||
|
<xsl:with-param name="status" select="'required'"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
<xsl:element name="dependency">
|
<xsl:element name="dependency">
|
||||||
<xsl:attribute name="status">required</xsl:attribute>
|
<xsl:attribute name="status">required</xsl:attribute>
|
||||||
<xsl:attribute name="name">
|
<xsl:attribute name="name">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="@id='xterm2'">xorg7-driver</xsl:when>
|
<xsl:when test="@id='printproto'">xorg-server</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:value-of
|
<xsl:value-of
|
||||||
select="preceding-sibling::sect1[1]/@id"/>
|
select="preceding-sibling::sect1[1]/@id"/>
|
||||||
|
@ -220,7 +231,8 @@
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:attribute name="type">ref</xsl:attribute>
|
<xsl:attribute name="type">ref</xsl:attribute>
|
||||||
</xsl:element>
|
</xsl:element>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:apply-templates select=".//para[@role='required' or
|
<xsl:apply-templates select=".//para[@role='required' or
|
||||||
@role='recommended' or
|
@role='recommended' or
|
||||||
|
|
Reference in a new issue