source: java/Framclipse/com.framsticks.framclipse/res/framscript.xsl @ 1124

Last change on this file since 1124 was 440, checked in by Mateusz Poszwa, 9 years ago
  • Updated Xtext-based Framclipse
  • Deleted previous version of Framclipse
  • Property svn:mime-type set to text/plain
File size: 1.8 KB
Line 
1<?xml version="1.0"?>
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3
4<xsl:template match="/">
5  <html><body>
6      <xsl:apply-templates select="//framscript"/>
7  </body></html>
8</xsl:template>
9
10<xsl:template match="framscript">
11  <h1>Framscript Objects</h1>
12  <b>These objects can be used in many <a href="framscontext.xml">contexts and files</a>.<br/><br/><br/></b>
13  <xsl:apply-templates select="//framscript/type"/>
14</xsl:template>
15
16<xsl:template match="type">
17  <hr/>
18  <table width="100%"><tr><td width="50%" valign="top">
19  <h2><xsl:value-of select="@name"/></h2>
20  <i>defined in <xsl:value-of select="@context"/></i><br/><br/>
21  <xsl:value-of select="description/."/>
22  </td><td valign="top">
23  <ul><xsl:apply-templates select="element"/></ul>
24  </td></tr></table>
25</xsl:template>
26
27<xsl:template match="element">
28  <li><xsl:choose><xsl:when test="@deprecated='true'"><strike><xsl:value-of select="@name"/></strike></xsl:when><xsl:otherwise><b><xsl:value-of select="@name"/></b></xsl:otherwise></xsl:choose> -
29   <xsl:if test="@function='true'">
30    function <xsl:if test="@type!=''">returning <xsl:value-of select="@type"/></xsl:if>
31    <br/><xsl:value-of select="description/."/>
32   
33    <xsl:if test="count(arguments)!='0'">
34     <ul><xsl:if test="count(arguments/argument)='0'"><u>No arguments</u></xsl:if>
35        <xsl:if test="count(arguments/argument)!='0'"><u>Arguments:</u><xsl:apply-templates select="arguments/argument"/></xsl:if></ul></xsl:if>
36    </xsl:if>
37   <xsl:if test="not(@function='true')">
38    <xsl:value-of select="@type"/> field
39    <xsl:if test="description/. != ''"><br/><xsl:value-of select="description/."/></xsl:if>
40   </xsl:if>
41  </li>
42</xsl:template>
43
44<xsl:template match="argument">
45  <li><b><xsl:value-of select="@name"/></b> - <xsl:value-of select="@type"/></li>
46</xsl:template>
47
48</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.