Allow the use of items' attributes 'target' and 'img' for breadcrumbs entries in the navigation file.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@386891 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier committed 2006-03-18 22:21:29 +00:00
1 parent 14987d4613
commit 0236ebabdb
3 files changed
+23 -18

No files matched your search

+21 -17
View File
@@ -651,6 +651,20 @@
</x:element>
</jsl:template>
<!-- Process additional powered-by's -->
<jsl:template match="powered-by" trim="true">
<x:forEach var="link" select="item">
<x:set var="poweredbyimage" select="string(@img)"/>
<x:set var="poweredbytitle" select="string(@name)"/>
<x:set var="poweredbyurl" select="string(@href)"/>
<j:if test="${!empty(poweredbyimage)}">
<a id="poweredByExternal" href="${poweredbyurl}" title="${poweredbytitle}">
<img alt="${poweredbytitle}" src="${poweredbyimage}" />
</a>
</j:if>
</x:forEach>
</jsl:template>
<!-- Process the links navbar -->
<jsl:template match="links" trim="true">
<j:set var="linkCount" value="1"/>
@@ -671,29 +685,19 @@
</x:forEach>
</jsl:template>
<!-- Process additional powered-by's -->
<jsl:template match="powered-by" trim="true">
<x:forEach var="link" select="item">
<x:set var="poweredbyimage" select="string(@img)"/>
<x:set var="poweredbytitle" select="string(@name)"/>
<x:set var="poweredbyurl" select="string(@href)"/>
<j:if test="${!empty(poweredbyimage)}">
<a id="poweredByExternal" href="${poweredbyurl}" title="${poweredbytitle}">
<img alt="${poweredbytitle}" src="${poweredbyimage}" />
</a>
</j:if>
</x:forEach>
</jsl:template>
<!-- Process the breadcrumb navbar -->
<jsl:template match="breadcrumbs" trim="true">
<jsl:template match="breadcrumbs" trim="true">
<x:forEach var="link" select="item">
<x:set var="_img" select="string(@img)"/>
<x:set var="_name" select="string(@name)"/>
<x:set var="_link" select="string(@href)"/>
<a href="${_link}">${_name}</a>
&#160;<span class="separator">&gt;</span>&#160;
<x:set var="_target" select="string(@target)"/>
<j:whitespace trim="false">
<doc:itemLink name="${_name}" link="${_link}" img="${_img}" target="${_target}"/>&#160;<span class="separator">&gt;</span>
</j:whitespace>
</x:forEach>
</jsl:template>
<!-- Process a menu for the navigation bar -->
<jsl:template match="menu" trim="true">
<x:set var="_menuName" select="string(@name)"/>