File tree 1 file changed +14
-10
lines changed
1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change 360
360
<xsl : for-each select =" methods/method" >
361
361
<xsl : sort select =" @name" />
362
362
<xsl : variable name =" method-name" select =" @name" />
363
+ <xsl : variable name =" method-position" select =" position()" />
363
364
<div id =" method-{$method-name}" >
364
- <xsl : attribute name =" class" >
365
- <xsl : text >api-item</xsl : text >
366
- <xsl : if test =" position() = 1" >
367
- <xsl : text > first-item</xsl : text >
368
- </xsl : if >
369
- </xsl : attribute >
370
365
371
366
<xsl : for-each select =" signature | self::node()[count(signature) = 0]" >
372
- <xsl : call-template name =" widget-method-event" >
373
- <xsl : with-param name =" entry-name" select =" $entry-name" />
374
- <xsl : with-param name =" method-name" select =" $method-name" />
375
- </xsl : call-template >
367
+ <div >
368
+ <xsl : attribute name =" class" >
369
+ <xsl : text >api-item</xsl : text >
370
+ <xsl : if test =" $method-position = 1 and position() = 1" >
371
+ <xsl : text > first-item</xsl : text >
372
+ </xsl : if >
373
+ </xsl : attribute >
374
+
375
+ <xsl : call-template name =" widget-method-event" >
376
+ <xsl : with-param name =" entry-name" select =" $entry-name" />
377
+ <xsl : with-param name =" method-name" select =" $method-name" />
378
+ </xsl : call-template >
379
+ </div >
376
380
</xsl : for-each >
377
381
</div >
378
382
</xsl : for-each >
You can’t perform that action at this time.
0 commit comments