~ubuntu-branches/debian/experimental/yelp-xsl/experimental

« back to all changes in this revision

Viewing changes to xslt/mallard/html/mal2html-inline.xsl

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2012-03-17 15:12:22 UTC
  • mfrom: (1.1.16) (11.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20120317151222-pnzcgh4actzfkwdb
Tags: 3.3.3-1
New upstream development release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
  <xsl:param name="node" select="."/>
96
96
  <xsl:param name="class" select="''"/>
97
97
  <span class="{concat($class, ' ', local-name($node))}">
98
 
    <xsl:call-template name="html.lang.attrs"/>
 
98
    <xsl:call-template name="html.lang.attrs">
 
99
      <xsl:with-param name="node" select="$node"/>
 
100
    </xsl:call-template>
99
101
    <xsl:choose>
100
102
      <xsl:when test="$node/@action | $node/@xref | $node/@href">
101
103
        <a>
208
210
  <xsl:call-template name="mal2html.span"/>
209
211
</xsl:template>
210
212
 
 
213
<!-- = keyseq % mal2html.inline.content.mode = -->
 
214
<xsl:template mode="mal2html.inline.content.mode" match="mal:key">
 
215
  <kbd>
 
216
    <xsl:if test=". = 'Fn'">
 
217
      <xsl:attribute name="class">
 
218
        <xsl:text>key-Fn</xsl:text>
 
219
      </xsl:attribute>
 
220
    </xsl:if>
 
221
    <xsl:apply-templates mode="mal2html.inline.mode"/>
 
222
  </kbd>
 
223
</xsl:template>
 
224
 
211
225
<!-- = keyseq = -->
212
226
<xsl:template mode="mal2html.inline.mode" match="mal:keyseq">
213
227
  <xsl:call-template name="mal2html.span"/>
245
259
 
246
260
<!-- = link = -->
247
261
<xsl:template mode="mal2html.inline.mode" match="mal:link">
248
 
  <xsl:call-template name="mal2html.span"/>
 
262
  <xsl:call-template name="mal2html.span">
 
263
    <xsl:with-param name="class">
 
264
      <xsl:if test="contains(concat(' ', @style, ' '), ' button ')">
 
265
        <xsl:text>link-button</xsl:text>
 
266
      </xsl:if>
 
267
    </xsl:with-param>
 
268
  </xsl:call-template>
249
269
</xsl:template>
250
270
 
251
271
<!-- = link % mal2html.inline.content.mode = -->