~ubuntu-branches/ubuntu/quantal/yelp-xsl/quantal

« back to all changes in this revision

Viewing changes to doc/yelp-xsl/xsldoc-scan.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Michael Terry
  • Date: 2011-07-09 10:02:21 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20110709100221-5ys7oh9pzgyaaoo4
Tags: 3.1.2-0ubuntu1
* New upstream release.
* debian/control.in:
  - Build-Depend on itstool
  - Point at Ubuntu's branch
* debian/watch:
  - Fix URL

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
            <xsl:for-each select="document(@href, /)//xsl:include">
141
141
              <xsl:variable name="id" select="translate(substring-before(str:split(@href, '/')[last()],
142
142
                                              '.xsl'), '.', '_')"/>
143
 
              <link type="topic" xref="{$id}"/>
 
143
              <link type="topic" xref="{$id}" group="S"/>
144
144
            </xsl:for-each>
145
145
          </xsl:when>
146
146
          <xsl:otherwise>
147
147
            <xsl:variable name="id" select="translate(substring-before(str:split(@href, '/')[last()],
148
148
                                            '.xsl'), '.', '_')"/>
149
 
            <link type="topic" xref="{$id}"/>
 
149
            <link type="topic" xref="{$id}" group="S"/>
150
150
          </xsl:otherwise>
151
151
        </xsl:choose>
152
152
      </xsl:for-each>
209
209
      </p>
210
210
    </xsl:if>
211
211
    <xsl:apply-templates/>
 
212
    <links type="topic" groups="S" style="linklist">
 
213
      <title>Stylesheets</title>
 
214
    </links>
 
215
    <links type="topic" groups="P" style="linklist">
 
216
      <title>Parameters</title>
 
217
    </links>
 
218
    <links type="topic" groups="M" style="linklist">
 
219
      <title>Modes</title>
 
220
    </links>
 
221
    <links type="topic" groups="T" style="linklist">
 
222
      <title>Templates</title>
 
223
    </links>
212
224
    <xsl:variable name="requires" select="$page/mal:info/mal:link[@type = 'xslt-requires']"/>
213
225
    <xsl:if test="count($requires) > 0">
214
226
      <list style="compact">
227
239
      <xsl:with-param name="page" select="$page"/>
228
240
      <xsl:with-param name="xslt_node" select="$xslt_file"/>
229
241
    </xsl:call-template>
230
 
    <xsl:if test="mal:section[@style = 'xslt-param']">
231
 
      <section id="P">
232
 
        <info>
233
 
          <title type="link">
234
 
            <xsl:text>Parameters for </xsl:text>
235
 
            <xsl:copy-of select="mal:title/node()"/>
236
 
          </title>
237
 
        </info>
238
 
        <title>Parameters</title>
239
 
      </section>
240
 
    </xsl:if>
241
 
    <xsl:if test="mal:section[@style = 'xslt-mode']">
242
 
      <section id="M">
243
 
        <info>
244
 
          <title type="link">
245
 
            <xsl:text>Modes for </xsl:text>
246
 
            <xsl:copy-of select="mal:title/node()"/>
247
 
          </title>
248
 
        </info>
249
 
        <title>Modes</title>
250
 
      </section>
251
 
    </xsl:if>
252
 
    <xsl:if test="mal:section[@style = 'xslt-template']">
253
 
      <section id="T">
254
 
        <info>
255
 
          <title type="link">
256
 
            <xsl:text>Templates for </xsl:text>
257
 
            <xsl:copy-of select="mal:title/node()"/>
258
 
          </title>
259
 
        </info>
260
 
        <title>Templates</title>
261
 
      </section>
262
 
    </xsl:if>
263
242
  </page>
264
243
</xsl:template>
265
244
 
287
266
  <exsl:document href="{$id}.page">
288
267
    <page id="{$id}" type="topic" style="{@style}">
289
268
      <info>
290
 
        <link type="guide" xref="{$xsldoc.id}#{$type}"/>
 
269
        <link type="guide" xref="{$xsldoc.id}" group="{$type}"/>
291
270
        <link type="guide" xref="index__{$type}"/>
292
271
        <xsl:call-template name="revision"/>
293
272
        <xsl:copy-of select="mal:info/*[not(self::mal:revision)]"/>