- Timestamp:
- 2003-07-11T16:14:13+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/web/interfaces/default/transform/service-params.xsl
r4878 r4900 20 20 <xsl:variable name="pname" select="@name"/> 21 21 <xsl:variable name="pvalue"><xsl:apply-templates select="." mode="calculate-default"/></xsl:variable> 22 <tr><td><xsl:value-of select= 'ancestor::service/display/param[@name=$pname]/name'/></td><td align="right"><xsl:apply-templates select="."><xsl:with-param name="default" select="$pvalue"/></xsl:apply-templates></td></tr>22 <tr><td><xsl:value-of select="displayItem[@name='name']"/></td><td align="right"><xsl:apply-templates select="."><xsl:with-param name="default" select="$pvalue"/></xsl:apply-templates></td></tr> 23 23 </xsl:otherwise> 24 24 </xsl:choose> … … 36 36 <xsl:param name="default"/> 37 37 <xsl:variable name="pname" select='@name'/> 38 <xsl:variable name='pdisplay' select='ancestor::service/display/param[@name=$pname]'/>39 38 <select name='{@shortname}'> 40 <option value="0"><xsl:if test="$default='0'"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select= '$pdisplay/option[@name="0"]'/></option>41 <option value="1"><xsl:if test="$default='1'"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select= '$pdisplay/option[@name="1"]'/></option>39 <option value="0"><xsl:if test="$default='0'"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select="option[@name='0']/displayItem[@name='name']"/></option> 40 <option value="1"><xsl:if test="$default='1'"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select="option[@name='1']/displayItem[@name='name']"/></option> 42 41 </select> 43 42 </xsl:template> … … 53 52 <xsl:param name="default"/> 54 53 <xsl:variable name="pname"><xsl:value-of select='@name'/></xsl:variable> 55 <xsl:variable name='pdisplay' select='ancestor::service/display/param[@name=$pname]'/>56 54 <xsl:choose> 57 55 <xsl:when test="count(option) = 1"> 58 <xsl:value-of select= '$pdisplay/option'/>56 <xsl:value-of select="option/displayItem[@name='name']"/> 59 57 <input type='hidden' name='{@shortname}'><xsl:attribute name='value'><xsl:value-of select='option/@name'/></xsl:attribute></input> 60 58 </xsl:when> … … 62 60 <select name="{@shortname}"> 63 61 <xsl:for-each select="option"> 64 <xsl:variable name='op_name' select='@name'/> 65 <option value="{@name}"><xsl:if test="@name=$default"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select='$pdisplay/option[@name=$op_name]'/></option> 62 <option value="{@name}"><xsl:if test="@name=$default"><xsl:attribute name="selected"></xsl:attribute></xsl:if><xsl:value-of select="displayItem[@name='name']"/></option> 66 63 </xsl:for-each> 67 64 </select> … … 75 72 <xsl:template match="param[@type='enum_multi']"> 76 73 <xsl:variable name="pname" select='@name'/> 77 <xsl:variable name='pdisplay' select='ancestor::service/display/param[@name=$pname]'/>78 74 <select name="{@shortname}" size='2'><xsl:attribute name="multiple"></xsl:attribute> 79 75 <xsl:for-each select="option"> 80 <xsl:variable name='op_name' select='@name'/> 81 <option value="{@name}"><xsl:value-of select='$pdisplay/option[@name=$op_name]'/></option> 76 <option value="{@name}"><xsl:value-of select="displayItem[@name='name']"/></option> 82 77 </xsl:for-each> 83 78 </select> … … 100 95 <xsl:variable name="parent" select="@name"/> 101 96 <table> 102 <tr><td colspan='10'><xsl:value-of select=" ancestor::service/display/param[@name=$parent]/name"/></td></tr>97 <tr><td colspan='10'><xsl:value-of select="displayItem[@name='name']"/></td></tr> 103 98 <tr> 104 99 <xsl:for-each select="param"> 105 <xsl:variable name='pname' select='@name'/> 106 107 <td><xsl:value-of select="ancestor::service/display/param[@name=$pname]/name"/></td> 100 <td><xsl:value-of select="displayItem[@name='name']"/></td> 108 101 </xsl:for-each> 109 102 </tr> … … 114 107 <xsl:template match="param[@type='multi']" mode="contents"> 115 108 <xsl:param name="occurs">1</xsl:param> 116 <xsl:variable name="pos" select="@occurs - $occurs"/> 109 <xsl:variable name="pos" select="@occurs - $occurs"/> 117 110 <tr><xsl:for-each select="param"> 118 111 <xsl:variable name="pname" select="@name"/>
Note:
See TracChangeset
for help on using the changeset viewer.