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

Last change on this file since 438 was 437, checked in by Mateusz Poszwa, 9 years ago

Added Framclipse as developed by Bartosz Kukawka and Tomek Maciejewski in 2010

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/xml
File size: 1.6 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  <xsl:apply-templates select="//framscript/type"/>
13</xsl:template>
14
15<xsl:template match="type">
16  <hr/>
17  <table width="100%"><tr><td width="50%" valign="top">
18  <h2><xsl:value-of select="@name"/></h2>
19  <i>defined in <xsl:value-of select="@context"/></i><br/><br/>
20  <xsl:value-of select="description/."/>
21  </td><td valign="top">
22  <ul><xsl:apply-templates select="element"/></ul>
23  </td></tr></table>
24</xsl:template>
25
26<xsl:template match="element">
27  <li><b><xsl:value-of select="@name"/></b> -
28   <xsl:if test="@function='true'">
29    function <xsl:if test="@type!=''">returning <xsl:value-of select="@type"/></xsl:if>
30    <br/><xsl:value-of select="description/."/>
31   
32    <xsl:if test="count(arguments)!='0'">
33     <ul><xsl:if test="count(arguments/argument)='0'"><u>No arguments</u></xsl:if>
34        <xsl:if test="count(arguments/argument)!='0'"><u>Arguments:</u><xsl:apply-templates select="arguments/argument"/></xsl:if></ul></xsl:if>
35    </xsl:if>
36   <xsl:if test="not(@function='true')">
37    <xsl:value-of select="@type"/> field
38    <xsl:if test="description/. != ''"><br/><xsl:value-of select="description/."/></xsl:if>
39   </xsl:if>
40  </li>
41</xsl:template>
42
43<xsl:template match="argument">
44  <li><b><xsl:value-of select="@name"/></b> - <xsl:value-of select="@type"/></li>
45</xsl:template>
46
47</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.