Add external dependencies to "packages.xml". Next step is to display
them in the dependency tree.
This commit is contained in:
parent
66f8df0a02
commit
12fc178906
1 changed files with 15 additions and 1 deletions
|
@ -246,7 +246,7 @@
|
||||||
|
|
||||||
<xsl:template match="para" mode="dependency">
|
<xsl:template match="para" mode="dependency">
|
||||||
<xsl:variable name="status" select="./@role"/>
|
<xsl:variable name="status" select="./@role"/>
|
||||||
<!-- No ulink for now (see special case for Perl modules) -->
|
<!-- First internal dependencies -->
|
||||||
<xsl:for-each select="./xref">
|
<xsl:for-each select="./xref">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<!-- Avoid depending of myself -->
|
<!-- Avoid depending of myself -->
|
||||||
|
@ -277,6 +277,20 @@
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
|
<!-- then external dependencies -->
|
||||||
|
<xsl:for-each select="./ulink">
|
||||||
|
<xsl:text>
|
||||||
|
</xsl:text>
|
||||||
|
<xsl:element name="dependency">
|
||||||
|
<xsl:attribute name="status">
|
||||||
|
<xsl:value-of select="$status"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
<xsl:attribute name="name">
|
||||||
|
<xsl:value-of select="normalize-space(text())"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
<xsl:attribute name="type">link</xsl:attribute>
|
||||||
|
</xsl:element>
|
||||||
|
</xsl:for-each>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="listitem" mode="prec-dep">
|
<xsl:template match="listitem" mode="prec-dep">
|
||||||
|
|
Reference in a new issue