Changeset 4878 for trunk/gsdl3/web/interfaces
- Timestamp:
- 2003-07-03T16:18:16+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/web/interfaces/default/transform/service-params.xsl
r4727 r4878 27 27 </xsl:template> 28 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 --> 51 <!-- boolean params --> 29 <xsl:template match="param" mode="calculate-default"> 30 <xsl:variable name="pname" select="@name"/> 31 <xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name=$pname]"><xsl:value-of select="/page/pageRequest/paramList/param[@name=$pname]/@value"/></xsl:when><xsl:otherwise><xsl:value-of select="@default"/></xsl:otherwise></xsl:choose> 32 </xsl:template> 33 34 <!-- boolean params --> 52 35 <xsl:template match="param[@type='boolean']"> 53 36 <xsl:param name="default"/> … … 152 135 153 136 </xsl:stylesheet> 137 138 <!-- a param list that puts params in pairs- wont work as is with new 139 param handling stuff --> 140 <!-- 141 <xsl:template match="paramList"> 142 <p/><table width="537"> 143 <xsl:choose> 144 <xsl:when test='count(param)>4'> 145 <xsl:for-each select="param[position() mod 2 = 1]"> 146 <tr><xsl:apply-templates select="."/> 147 <xsl:if test="following-sibling::param[1]"><xsl:apply-templates select='following-sibling::param[1]'/></xsl:if></tr> 148 </xsl:for-each> 149 </xsl:when> 150 <xsl:otherwise> 151 <xsl:for-each select="param"> 152 <tr><xsl:apply-templates select='.'/></tr> 153 </xsl:for-each> 154 </xsl:otherwise> 155 </xsl:choose> 156 </table> 157 </xsl:template> 158 -->
Note:
See TracChangeset
for help on using the changeset viewer.