Changeset 4727
- Timestamp:
- 2003-06-18T15:52:25+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/web/interfaces/default/transform/service-params.xsl
r4712 r4727 8 8 - these now only output the selection box/text box etc, not the name --> 9 9 10 <!-- the default param list handling --> 11 <xsl:template match="paramList"> 12 <p/><table width="100%"> 13 <xsl:for-each select="param"> 14 <xsl:choose> 15 <xsl:when test="@type='multi'"> 16 <tr><td colspan='2'> 17 <xsl:apply-templates select='.'/></td></tr> 18 </xsl:when> 19 <xsl:otherwise> 20 <xsl:variable name="pname" select="@name"/> 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> 23 </xsl:otherwise> 24 </xsl:choose> 25 </xsl:for-each> 26 </table> 27 </xsl:template> 28 29 30 <!-- a param list that puts params in pairs- wont work as is with new 31 param handling stuff --> 32 <!-- 33 <xsl:template match="paramList"> 34 <p/><table width="537"> 35 <xsl:choose> 36 <xsl:when test='count(param)>4'> 37 <xsl:for-each select="param[position() mod 2 = 1]"> 38 <tr><xsl:apply-templates select="."/> 39 <xsl:if test="following-sibling::param[1]"><xsl:apply-templates select='following-sibling::param[1]'/></xsl:if></tr> 40 </xsl:for-each> 41 </xsl:when> 42 <xsl:otherwise> 43 <xsl:for-each select="param"> 44 <tr><xsl:apply-templates select='.'/></tr> 45 </xsl:for-each> 46 </xsl:otherwise> 47 </xsl:choose> 48 </table> 49 </xsl:template> 50 --> 10 51 <!-- boolean params --> 11 52 <xsl:template match="param[@type='boolean']">
Note:
See TracChangeset
for help on using the changeset viewer.