123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: cpscrn
- (C) Copyright IBM Corp. 2005, 2011
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:ui="http://developer.cognos.com/schemas/cps/logic/ui/1/"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:nav="http://developer.cognos.com/schemas/cps/navigation/1/">
-
- <!--===============================-->
- <!-- Template to render pagination -->
- <!--===============================-->
- <xsl:template name="render-pager-control">
- <xsl:param name="content"/>
-
- <xsl:variable name="start" select="number($content/@start)"/>
- <xsl:variable name="end" select="number($content/@end)"/>
- <xsl:variable name="more" select="$content/@more"/>
- <xsl:variable name="max" select="$content/@max"/>
- <xsl:variable name="display-max-objects">
- <xsl:choose>
- <xsl:when test="$max">
- <xsl:value-of select="$max"/>
- </xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <table border="0" cellpadding="0" cellspacing="0" style="padding: 1px; height: 20px;">
- <tr>
- <xsl:variable name="from_value">
- <xsl:choose>
- <xsl:when test="$start > 0">
- <xsl:value-of select="$start"/>
- </xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="to_value">
- <xsl:choose>
- <xsl:when test=" $end > 0">
- <xsl:value-of select="$end"/>
- </xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <td class="formText" align="right" nowrap="nowrap">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td class="formText"><xts:string id="IDS_MVC_ENTRIES"/>: </td>
- <td nowrap="nowrap">
- <input id="_THIS_from" class="formText" type="text" size="4" name="from" maxlength="9" value="{ $from_value }"/>
- <xsl:text/> - <xsl:text/>
- <input id="_THIS_to" class="formText" type="text" size="4" name="to" maxlength="9" value="{$to_value }"/>
- </td>
- </tr>
- </table>
- </td>
- <td class="formText" width="18" nowrap="nowrap" style="padding-left:2px; padding-right:8px">
- <img src="{$webRoot}/ps/images/space.gif" alt="" title="" width="2" height="1"/>
- <a xsl:use-attribute-sets="anchor" href="#" onclick="_THIS_goto(document.getElementById('_THIS_from').value, document.getElementById('_THIS_to').value)">
- <img height="16" width="16" class="button" border="0" src="{$webRoot}/skins/{$skin}/portal/images/action_go.gif" onmousedown="this.className='button_hover'" onmouseover="this.className='button_hover'" onmouseout="this.className='button'">
- <xsl:attribute name="alt"><xts:string id="IDS_MVC_GOTO"/></xsl:attribute>
- <xsl:attribute name="title"><xts:string id="IDS_MVC_GOTO"/></xsl:attribute>
- </img>
- </a>
- </td>
- <td width="1" nowrap="nowrap">
- <table cellspacing="0" cellpadding="0" border="0">
- <tbody>
- <tr>
- <td class="tableHeaderDivider">
- <img width="1" alt="" title="" height="15" src="{$webRoot}/ps/images/space.gif"/>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- <td class="formText" width="70" nowrap="nowrap" style="padding-left:8px;">
- <!-- First page button -->
- <xsl:choose>
- <xsl:when test="( ($start > 1 ) or ($more='true' and $start = 0) )">
- <a xsl:use-attribute-sets="anchor" href="#" onclick="_THIS_retrieve('skip=0&maxobjs={$linesPerPage}')">
- <img height="13" width="13" class="button" src="{$webRoot}/skins/{$skin}/portal/images/control_btn_top.gif" border="0" onmousedown="this.className='button_hover'" onmouseover="this.className='button_hover'" onmouseout="this.className='button'">
- <xsl:attribute name="alt"><xts:string id="IDS_MVC_FIRSTPAGE"/></xsl:attribute>
- <xsl:attribute name="title"><xts:string id="IDS_MVC_FIRSTPAGE"/></xsl:attribute>
- </img>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <img height="13" width="13" class="button" src="{$webRoot}/skins/{$skin}/portal/images/control_btn_top_disabled.gif" border="0">
- <xsl:attribute name="alt"><xts:string id="IDS_MVC_FIRSTPAGE"/></xsl:attribute>
- <xsl:attribute name="title"><xts:string id="IDS_MVC_FIRSTPAGE"/></xsl:attribute>
- </img>
- </xsl:otherwise>
- </xsl:choose>
- <img width="2" height="1" alt="" title="" src="{$webRoot}/ps/images/space.gif"/>
-
- <!-- Previous page button -->
- <xsl:choose>
- <xsl:when test="$start > 1">
- <xsl:variable name="skip-previous" select="$start - number($display-max-objects) - 1"/>
- <xsl:variable name="skip">
- <xsl:choose>
- <xsl:when test="$skip-previous >= 0">
- <xsl:value-of select="$skip-previous"/>
- </xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <a xsl:use-attribute-sets="anchor" href="#" onclick="_THIS_retrieve('skip={$skip}&maxobjs={$linesPerPage}')">
- <img height="13" width="13" class="button" src="{$webRoot}/skins/{$skin}/portal/images/control_btn_pageup.gif" border="0" onmousedown="this.className='button_hover'" onmouseover="this.className='button_hover'" onmouseout="this.className='button'">
- <xsl:attribute name="alt"><xts:string id="IDS_MVC_PREVIOUSPAGE"/></xsl:attribute>
- <xsl:attribute name="title"><xts:string id="IDS_MVC_PREVIOUSPAGE"/></xsl:attribute>
- </img>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <img height="13" width="13" class="button" src="{$webRoot}/skins/{$skin}/portal/images/control_btn_pageup_disabled.gif" border="0">
- <xsl:attribute name="alt"><xts:string id="IDS_MVC_PREVIOUSPAGE"/></xsl:attribute>
- <xsl:attribute name="title"><xts:string id="IDS_MVC_PREVIOUSPAGE"/></xsl:attribute>
- </img>
- </xsl:otherwise>
- </xsl:choose>
- <img src="{$webRoot}/ps/images/space.gif" alt="" title="" width="2" height="1"/>
-
- <!-- Next page button -->
- <xsl:choose>
- <xsl:when test="$more = 'true'">
- <xsl:variable name="skip" select="$content/@end"/>
- <a xsl:use-attribute-sets="anchor" href="#" onclick="_THIS_retrieve('skip={$skip}&maxobjs={$linesPerPage}')">
- <img height="13" width="13" class="button" src="{$webRoot}/skins/{$skin}/portal/images/control_btn_pagedown.gif" border="0" onmousedown="this.className='button_hover'" onmouseover="this.className='button_hover'" onmouseout="this.className='button'">
- <xsl:attribute name="alt"><xts:string id="IDS_MVC_NEXTPAGE"/></xsl:attribute>
- <xsl:attribute name="title"><xts:string id="IDS_MVC_NEXTPAGE"/></xsl:attribute>
- </img>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <img height="13" width="13" class="button" src="{$webRoot}/skins/{$skin}/portal/images/control_btn_pagedown_disabled.gif" border="0">
- <xsl:attribute name="alt"><xts:string id="IDS_MVC_NEXTPAGE"/></xsl:attribute>
- <xsl:attribute name="title"><xts:string id="IDS_MVC_NEXTPAGE"/></xsl:attribute>
- </img>
- </xsl:otherwise>
- </xsl:choose>
- <img src="{$webRoot}/ps/images/space.gif" alt="" title="" width="2" height="1"/>
-
- <!-- Last page button -->
- <xsl:choose>
- <xsl:when test="$more = 'true'">
- <xsl:variable name="skip" select="-$linesPerPage"/>
- <a xsl:use-attribute-sets="anchor" href="#" onclick="_THIS_retrieve('skip={$skip}&maxobjs={$linesPerPage}')">
- <img height="13" width="13" class="button" src="{$webRoot}/skins/{$skin}/portal/images/control_btn_bottom.gif" border="0" onmousedown="this.className='button_hover'" onmouseover="this.className='button_hover'" onmouseout="this.className='button'">
- <xsl:attribute name="alt"><xts:string id="IDS_MVC_LASTPAGE"/></xsl:attribute>
- <xsl:attribute name="title"><xts:string id="IDS_MVC_LASTPAGE"/></xsl:attribute>
- </img>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <img height="13" width="13" class="button" src="{$webRoot}/skins/{$skin}/portal/images/control_btn_bottom_disabled.gif" border="0">
- <xsl:attribute name="alt"><xts:string id="IDS_MVC_LASTPAGE"/></xsl:attribute>
- <xsl:attribute name="title"><xts:string id="IDS_MVC_LASTPAGE"/></xsl:attribute>
- </img>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <!--============================-->
- <!-- Template to render content -->
- <!--============================-->
- <xsl:template name="render-pager">
- <xsl:param name="content"/>
-
- <table border="0" cellpadding="1" cellspacing="0" valign="top" width="100%" style="border: 1px solid black;margin-top:5px;">
- <xsl:call-template name="render-header"/>
- <xsl:call-template name="render-content">
- <xsl:with-param name="content" select="$content"/>
- </xsl:call-template>
- </table>
- </xsl:template>
-
- <!--=================================-->
- <!-- Template to render pager header -->
- <!--=================================-->
- <xsl:template name="render-header">
- <xsl:variable name="sort" select="$params[@name='sort']"/>
- <tr class="tableHeader">
- <td valign="center" height="23px;" class="formText" width="20"> </td>
-
- <td width="1">
- <table cellspacing="0" cellpadding="0" border="0">
- <tbody>
- <tr>
- <td class="tableHeaderDivider">
- <img width="1" height="15" alt="" title="" src="{$webRoot}/ps/images/space.gif"/>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
-
- <xsl:if test="$view = 'search'">
- <!-- "search path" column header -->
- <td>
- <img width="20" height="16" alt="" title="" align="absmiddle" src="{$webRoot}/skins/{$skin}/portal/images/path.gif"/>
- </td>
- </xsl:if>
-
- <!-- "Name" column header -->
- <td valign="center" width="100%">
- <table cellpadding="0" cellspacing="0" border="0">
- <tr>
- <td width="100%">
- <table cellpadding="0" cellspacing="0" border="0">
- <tr>
- <td valign="top" class="tableTitle">
- <b><xts:string id="IDS_MVC_NAME"/></b>
- </td>
- <td>
- <a xsl:use-attribute-sets="anchor" href="#" onclick="_THIS_sort('n','{$sort}')">
- <xsl:variable name="sort-img">
- <xsl:call-template name="calculate-sortImage">
- <xsl:with-param name="category" select="'n'"/>
- <xsl:with-param name="sort" select="$sort"/>
- </xsl:call-template>
- </xsl:variable>
- <img height="15" width="15" border="0" src="{$webRoot}/skins/{$skin}/portal/images/{$sort-img}">
- <xsl:attribute name="alt"><xts:string id="IDS_MVC_SORT"/></xsl:attribute>
- <xsl:attribute name="title"><xts:string id="IDS_MVC_SORT"/></xsl:attribute>
- </img>
- </a>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
-
- <!-- "Modified" column header -->
- <xsl:if test="$view != 'search'">
- <td width="1">
- <table cellspacing="0" cellpadding="0" border="0">
- <tbody>
- <tr>
- <td class="tableHeaderDivider">
- <img width="1" height="15" alt="" title="" src="{$webRoot}/ps/images/space.gif"/>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
-
- <td valign="center" nowrap="nowrap" width="200">
- <table cellpadding="0" cellspacing="0" border="0">
- <tr>
- <td valign="top" class="tableTitle">
- <b><xts:string id="IDS_MVC_MODIFIED"/></b>
- </td>
- <td>
- <a xsl:use-attribute-sets="anchor" href="#" onclick="_THIS_sort('d','{$sort}')">
- <xsl:variable name="sort-img">
- <xsl:call-template name="calculate-sortImage">
- <xsl:with-param name="category" select="'d'"/>
- <xsl:with-param name="sort" select="$sort"/>
- </xsl:call-template>
- </xsl:variable>
- <img height="15" width="15" border="0" src="{$webRoot}/skins/{$skin}/portal/images/{$sort-img}">
- <xsl:attribute name="alt"><xts:string id="IDS_MVC_SORT"/></xsl:attribute>
- <xsl:attribute name="title"><xts:string id="IDS_MVC_SORT"/></xsl:attribute>
- </img>
- </a>
- </td>
- </tr>
- </table>
- </td>
- </xsl:if>
-
- <td width="1">
- <table cellspacing="0" cellpadding="0" border="0">
- <tbody>
- <tr>
- <td class="tableHeaderDivider">
- <img width="1" height="15" alt="" title="" src="{$webRoot}/ps/images/space.gif"/>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
-
- <!-- "Actions" column header -->
- <td valign="center" class="tableTitle" nowrap="nowrap" width="170">
- <b><xts:string id="IDS_MVC_ACTIONS"/></b>
- </td>
- </tr>
- </xsl:template>
-
- <!--==========================================-->
- <!-- Template to object contents in the pager -->
- <!--==========================================-->
- <xsl:template name="render-content">
- <xsl:param name="content"/>
-
- <xsl:choose>
- <xsl:when test="$content/*">
- <xsl:for-each select="$content/*[self::nav:item | self::nav:container | self::nav:shortcut]">
- <xsl:call-template name="render-item">
- <xsl:with-param name="item" select="."/>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <!-- No content! -->
- <xsl:call-template name="render-noContent">
- <xsl:with-param name="isInvalidContainer" select="$view = 'navigator' and not($content)"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <!--=========================================================-->
- <!-- Template to render conditions where there is no content -->
- <!--=========================================================-->
- <xsl:template name="render-noContent">
- <xsl:param name="isInvalidContainer"/>
-
- <tr>
- <td valign="bottom" align="center" colspan="13">
- <p class="objectNoneFound">
- <xsl:choose>
- <xsl:when test="$isInvalidContainer">
- <xts:string id="IDS_MVC_VIEW_INVALID_CONTENT"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_MVC_NO_ENTRIES"/>
- </xsl:otherwise>
- </xsl:choose>
- </p>
- </td>
- </tr>
- <tr>
- <td valign="bottom" align="center" colspan="13">
- <img src="{$webRoot}/ps/images/space.gif" alt="" title="" width="15" height="40"/>
- </td>
- </tr>
- </xsl:template>
-
- <!--===================================================-->
- <!-- Template to render an object link and its actions -->
- <!--===================================================-->
- <xsl:template name="render-item">
- <xsl:param name="item"/>
-
- <xsl:if test="$display-separator = 'line' and position() > 1">
- <tr style="height:1px;">
- <td class="rowDividerLine" colspan="7"><img width="1px" height="1px" alt="" title="" src="{$webRoot}/ps/images/space.gif"/></td>
- </tr>
- </xsl:if>
-
- <tr style="height:1px;">
- <xsl:if test="($display-separator = 'background') and ((position() mod 2) = 0)"><xsl:attribute name="class">rowHighlight</xsl:attribute></xsl:if>
-
- <td class="tableText" nowrap="nowrap" align="right">
- <img border="0" width="16" height="16" src="{ $item/nav:imgURL }" alt="{ $item/nav:screenTip }" title="{ $item/nav:screenTip }"/>
- <xsl:choose>
- <xsl:when test="nav:defaultAction/nav:imgURL != ''">
- <img border="0" width="12" height="16" src="{ $item/nav:defaultAction/nav:imgURL }"/>
- </xsl:when>
- <xsl:otherwise>
- <img border="0" width="12" height="16" alt="" title="" src="{$webRoot}/ps/images/space.gif"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
-
- <td class="tableText" width="1" height="20">
- <img src="{$webRoot}/ps/images/space.gif" alt="" title="" width="1" height="20"/>
- </td>
-
- <xsl:if test="$view = 'search'">
- <!-- "search path" column -->
- <td>
- <img alt="" title="" width="20" height="16" align="absmiddle" src="{$webRoot}/skins/{$skin}/portal/images/path.gif">
- <xsl:variable name="path-indicator">
- <xsl:call-template name="build-breadcrumb">
- <xsl:with-param name="fullPath" select="$item/nav:fullPath"/>
- <xsl:with-param name="currentName" select="$item/nav:name"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:attribute name="alt">
- <xsl:value-of select="$path-indicator"/>
- </xsl:attribute>
- <xsl:attribute name="title">
- <xsl:value-of select="$path-indicator"/>
- </xsl:attribute>
- </img>
- </td>
- </xsl:if>
-
- <!-- "Name" column -->
- <td width="100%">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td class="tableText">
- <xsl:choose>
- <xsl:when test="not($item/nav:defaultAction/*)">
- <xsl:value-of select="$item/nav:name"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="$item[self::nav:container or self::nav:shortcut/nav:container]">
- <a xsl:use-attribute-sets="anchor" href="#" onclick="_THIS_navigate('{($item/nav:id | $item/nav:container/nav:id)[last()]}');">
- <xsl:value-of select="$item/nav:name"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="url">
- <xsl:call-template name="build-url">
- <xsl:with-param name="action" select="$item/nav:defaultAction"/>
- <xsl:with-param name="is-defaultAction" select="true()"/>
- </xsl:call-template>
- </xsl:variable>
- <a xsl:use-attribute-sets="anchor">
- <xsl:attribute name="href"><xsl:value-of select="'#'"/></xsl:attribute>
- <xsl:attribute name="onclick"><xsl:value-of select="$url"/></xsl:attribute>
- <xsl:value-of select="$item/nav:name"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$item/nav:icon/nav:name = 'disabled'">
- <xsl:text> </xsl:text>
- <img src="{ $item/nav:icon/nav:imgURL }" width="16" height="16" border="0" align="middle">
- <xsl:attribute name="alt"><xsl:value-of select="$item/nav:icon/nav:alt"/></xsl:attribute>
- <xsl:attribute name="title"><xsl:value-of select="$item/nav:icon/nav:alt"/></xsl:attribute>
- </img>
- </xsl:if>
- </td>
- </tr>
- <xsl:if test="$view = 'search'">
- <tr>
- <td class="tableText">
- <nobr><xts:string id="IDS_MVC_SEARCH_LAST_MODIFIED_TEXT"/>: <xsl:value-of select="$item/nav:lastModifiedDate"/></nobr>
- </td>
- </tr>
- </xsl:if>
- </table>
- </td>
-
- <!-- "Modified" column -->
- <xsl:if test="$view != 'search'">
- <td class="tableText" width="1">
- <img src="{$webRoot}/ps/images/space.gif" alt="" title="" width="1" height="1"/>
- </td>
-
- <td class="tableText" nowrap="nowrap" width="200">
- <nobr><xsl:value-of select="$item/nav:lastModifiedDate"/></nobr>
- </td>
- </xsl:if>
-
- <td class="tableText" width="1">
- <img src="{$webRoot}/ps/images/space.gif" alt="" title="" width="1" height="1"/>
- </td>
-
- <!-- "Actions" column -->
- <td class="tableText" nowrap="nowrap" width="170">
- <nobr>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <xsl:for-each select="$item/nav:action">
- <xsl:variable name="url">
- <xsl:call-template name="build-url">
- <xsl:with-param name="action" select="."/>
- </xsl:call-template>
- </xsl:variable>
- <td class="objectOptions">
- <a xsl:use-attribute-sets="anchor">
- <xsl:attribute name="href"><xsl:value-of select="'#'"/></xsl:attribute>
- <xsl:attribute name="onclick"><xsl:value-of select="$url"/></xsl:attribute>
- <xsl:choose>
- <xsl:when test="nav:imgURL != ''">
- <img border="0" width="16" height="16" src="{ nav:imgURL }" alt="{ nav:alt }" title="{ nav:alt }"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="nav:alt"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </td>
- <xsl:if test="position() != last()">
- <td class="tableText" width="3">
- <img width="3" height="1" alt="" title="" src="{$webRoot}/ps/images/space.gif"/>
- </td>
- </xsl:if>
- </xsl:for-each>
- </tr>
- </table>
- </nobr>
- </td>
- </tr>
- </xsl:template>
-
- <!--====================================-->
- <!-- Template to calculate a sort image -->
- <!--====================================-->
- <xsl:template name="calculate-sortImage">
- <xsl:param name="category"/>
- <xsl:param name="sort"/>
-
- <xsl:choose>
- <xsl:when test="$sort = concat($category, '_a')">
- <xsl:text>list_sort_ascending.gif</xsl:text>
- </xsl:when>
- <xsl:when test="$sort = concat($category, '_d')">
- <xsl:text>list_sort_descending.gif</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>list_sort_no.gif</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <!--================================================================-->
- <!-- Template to render the path links for the navigator and search -->
- <!--================================================================-->
- <xsl:template name="render-breadcrumb">
- <xsl:param name="path-stack"/>
- <xsl:choose>
- <xsl:when test="$view = 'search'">
- <xsl:for-each select="$path-stack/path">
- <xsl:if test="position() > 1">
- <xsl:value-of select="$path-separator"/>
- </xsl:if>
- <xsl:value-of select="./name"/>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="show_breadcrumb">
- <xsl:if test="not($params[@name='showBreadcrumb'] = 'true')">
- <xsl:text/>display:none<xsl:text/>
- </xsl:if>
- </xsl:variable>
- <div id="mvc-remote-breadcrumbContainer" style="{$show_breadcrumb}">
- <xsl:for-each select="$path-stack/path">
- <xsl:if test="position() > 1">
- <xsl:value-of select="$path-separator"/>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="./@virtualRoot = 'true'">
- <a xsl:use-attribute-sets="anchor" href="#" onclick="javascript:_THIS_navigateVirtualRoot();"><xsl:value-of select="./name"/></a>
- </xsl:when>
- <xsl:when test="./@leafNode = 'true'">
- <span class="pathLeafNode"><xsl:value-of select="./name"/></span>
- </xsl:when>
- <xsl:otherwise>
- <a xsl:use-attribute-sets="anchor" href="#" onclick="_THIS_navigate('{./id}')"><xsl:value-of select="./name"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </div>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- </xsl:stylesheet>
|