~ubuntu-branches/ubuntu/vivid/yelp-xsl/vivid

« back to all changes in this revision

Viewing changes to xslt/mallard/common/mal-link.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Frederic Peters
  • Date: 2011-05-25 12:04:24 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20110525120424-gsvebuszy3p5mdfa
Tags: 3.0.2-1
* New upstream release.
* Update to standards version 3.9.2, no change needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
399
399
-->
400
400
<xsl:template name="mal.link.topiclinks">
401
401
  <xsl:param name="node" select="."/>
402
 
  <xsl:variable name="linkid">
403
 
    <xsl:call-template name="mal.link.linkid">
404
 
      <xsl:with-param name="node" select="$node"/>
405
 
    </xsl:call-template>
406
 
  </xsl:variable>
407
 
  <xsl:variable name="groups">
 
402
  <xsl:param name="groups">
408
403
    <xsl:variable name="_groups">
409
404
      <xsl:choose>
410
405
        <xsl:when test="$node/mal:links[@type = 'topic']">
436
431
    <xsl:if test="not(contains($_groups, ' #last '))">
437
432
      <xsl:text>#last </xsl:text>
438
433
    </xsl:if>
439
 
  </xsl:variable>
 
434
  </xsl:param>
440
435
  <xsl:variable name="groupslist" select="str:split($groups)"/>
441
436
  <xsl:variable name="defaultpos">
442
437
    <xsl:for-each select="$groupslist">
445
440
      </xsl:if>
446
441
    </xsl:for-each>
447
442
  </xsl:variable>
 
443
  <xsl:variable name="linkid">
 
444
    <xsl:call-template name="mal.link.linkid">
 
445
      <xsl:with-param name="node" select="$node"/>
 
446
    </xsl:call-template>
 
447
  </xsl:variable>
448
448
  <xsl:variable name="links">
449
449
    <xsl:for-each select="$node/mal:info/mal:link[@type = 'topic']">
450
450
      <xsl:variable name="linklinkid">