Changeset 264 for java/FramclipsePlugin/src/main/resources
- Timestamp:
- 12/11/14 12:47:20 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/FramclipsePlugin/src/main/resources/framscontext.xsl
r13 r264 9 9 10 10 <xsl:template match="framscontext"> 11 <style> 12 .file {color:red;} 13 .context-code {color: #00ee00;} 14 .context-file {color: #007700;} 15 .objects {color: #0000ff;} 16 </style> 17 11 18 <h1>Framscript Context Configuration</h1> 12 <i>Note: 19 20 <b>Each <span class="file">file type</span> may contain <span class="objects">objects</span> from many <span class="context-file">contexts</span>, as specified below.<br/>Each <span class="context-file">context</span> may contain many <span class="objects">objects</span>, as specified below.<br/>Note: 13 21 <xsl:choose><xsl:when test="count(document('framscript.xml')/framscript)=0"> 14 This formatting sheet would also use <a href="framscript.xml">framscript.xml</a> to show object names if that file was available</xsl:when>15 <xsl:otherwise>This formatting sheet also includes object names extracted from <a href="framscript.xml">framscript.xml</a></xsl:otherwise>22 This formatting sheet (xsl) would use <a href="framscript.xml">framscript.xml</a> to show object names if that file was available!</xsl:when> 23 <xsl:otherwise>This formatting sheet (xsl) includes object names extracted from <a href="framscript.xml">framscript.xml</a>.</xsl:otherwise> 16 24 </xsl:choose> 17 </ i>25 </b><br/><br/><br/> 18 26 19 27 <table border="1"> … … 25 33 <xsl:template match="file"> 26 34 <tr valign="top"> 27 <td ><b><xsl:value-of select="@label"/></b><br/><xsl:value-of select="@pattern"/></td>35 <td class="file"><b><xsl:value-of select="@label"/></b><br/><xsl:value-of select="@pattern"/></td> 28 36 <td> 29 37 <xsl:if test="count(code)!=0"> 30 38 <p title="Defined by <objects>"> 31 Objects defined in the following contexts can be stored directly in the file : (using the standard framsticks format)<ul><xsl:apply-templates select="objects"/></ul>39 Objects defined in the following contexts can be stored directly in the file (using the standard Framsticks <a href="http://www.framsticks.com/common/formatspec.html">format</a>):<ul><xsl:apply-templates select="objects"/></ul> 32 40 </p> 33 41 <xsl:apply-templates select="code"/> … … 86 94 </xsl:template> 87 95 96 97 98 99 <xsl:template name="extobjects"> 100 <xsl:param name="objs"/> 101 <xsl:if test="count($objs)!=0"> 102 ( 103 <xsl:for-each select="$objs"> 104 <font class="objects"><xsl:value-of select="@name"/></font>, 105 </xsl:for-each> 106 ) 107 </xsl:if> 108 </xsl:template> 109 110 88 111 <xsl:template match="objects"> 89 <li><b>< xsl:value-of select="@context"/></b>112 <li><b><span class="context-file"><xsl:value-of select="@context"/></span></b> 90 113 <xsl:variable name="context" select="@context"/> 91 114 <xsl:call-template name="extobjects"><xsl:with-param name="objs" select="document('framscript.xml')/framscript/type[@context=$context]"/></xsl:call-template> … … 94 117 95 118 <xsl:template match="script"> 96 <li><b>< xsl:value-of select="@context"/></b>119 <li><b><span class="context-code"><xsl:value-of select="@context"/></span></b> 97 120 <xsl:variable name="context" select="@context"/> 98 121 <xsl:call-template name="extobjects"><xsl:with-param name="objs" select="document('framscript.xml')/framscript/type[@context=$context]"/></xsl:call-template> … … 100 123 </xsl:template> 101 124 102 <xsl:template name="extobjects">103 <xsl:param name="objs"/>104 <xsl:if test="count($objs)!=0">105 (106 <xsl:for-each select="$objs">107 <xsl:value-of select="@name"/>,108 </xsl:for-each>109 )110 </xsl:if>111 </xsl:template>112 113 125 <xsl:template match="context"> 114 <li><b>< xsl:value-of select="@name"/></b>126 <li><b><span class="context-code"><xsl:value-of select="@name"/></span></b> 115 127 <xsl:variable name="context" select="@name"/> 116 128 <xsl:call-template name="extobjects"><xsl:with-param name="objs" select="document('framscript.xml')/framscript/type[@context=$context]"/></xsl:call-template> 117 129 </li> 118 130 </xsl:template> 131 132 119 133 120 134 <xsl:template match="code"> … … 126 140 <xsl:template match="properties"> 127 141 <li> 128 < b><xsl:value-of select="@to"/></b> is defined by "<xsl:value-of select="@from"/>"objects142 <span class="objects"><b><xsl:value-of select="@to"/></b></span> is defined by <span class="objects"><xsl:value-of select="@from"/></span> objects 129 143 </li> 130 144 </xsl:template>
Note: See TracChangeset
for help on using the changeset viewer.