Changeset 332
- Timestamp:
- 03/04/07 12:46:59 (2 years ago)
- Files:
-
- trunk/src/main/resources/xsl/stub.xsl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/resources/xsl/stub.xsl
r278 r332 213 213 </xsl:attribute> 214 214 <xsl:copy-of select="@*[local-name() != 'class']"/> 215 <ul> 215 216 <xsl:apply-templates select="node()"> 216 217 <xsl:with-param name="id" select="@id"/> 217 218 </xsl:apply-templates> 219 </ul> 218 220 </div> 219 221 </xsl:template> … … 222 224 <xsl:param name="id" select="@id"/> 223 225 <li> 224 < label>225 < xsl:attribute name="for">226 <xsl: value-of select="$id"/>227 <xsl:text>.</xsl:text>228 <xsl:value-of select="@name"/>229 </xsl:attribute>230 <xsl:if test="not(@type = 'submit')">226 <xsl:if test="not(@type = 'submit')"> 227 <label> 228 <xsl:attribute name="for"> 229 <xsl:value-of select="$id"/> 230 <xsl:text>_</xsl:text> 231 <xsl:value-of select="@name"/> 232 </xsl:attribute> 231 233 <xsl:call-template name="stub:include"> 232 234 <xsl:with-param name="part"> … … 236 238 </xsl:with-param> 237 239 </xsl:call-template> 238 </xsl:if>239 < xsl:if test="@mandatory = 'true'"><xsl:text>*</xsl:text></xsl:if>240 </ label>240 <xsl:if test="@mandatory = 'true'"><xsl:text>*</xsl:text></xsl:if> 241 </label> 242 </xsl:if> 241 243 <xsl:choose> 242 244 <xsl:when test="@type = 'text'"> … … 244 246 <xsl:attribute name="id"> 245 247 <xsl:value-of select="$id"/> 246 <xsl:text> .</xsl:text>248 <xsl:text>_</xsl:text> 247 249 <xsl:value-of select="@name"/> 248 250 </xsl:attribute> 249 <xsl:copy-of select="@*[local-name() != 'id' and local-name() != 'name' ]"/>251 <xsl:copy-of select="@*[local-name() != 'id' and local-name() != 'name' and local-name() != 'mandatory']"/> 250 252 </input> 251 253 </xsl:when> … … 254 256 <xsl:attribute name="id"> 255 257 <xsl:value-of select="$id"/> 256 <xsl:text> .</xsl:text>258 <xsl:text>_</xsl:text> 257 259 <xsl:value-of select="@name"/> 258 260 </xsl:attribute> 259 <xsl:copy-of select="@*[local-name() != 'id' and local-name() != 'name' ]"/>261 <xsl:copy-of select="@*[local-name() != 'id' and local-name() != 'name' and local-name() != 'mandatory' and local-name() != 'type']"/> 260 262 <xsl:apply-templates select="node()"> 261 263 <xsl:with-param name="id" select="@id"/> … … 267 269 <xsl:attribute name="id"> 268 270 <xsl:value-of select="$id"/> 269 <xsl:text> .</xsl:text>271 <xsl:text>_</xsl:text> 270 272 <xsl:value-of select="@name"/> 271 273 </xsl:attribute> 272 <xsl:copy-of select="@*[local-name() != 'id' and local-name() != 'name' ]"/>274 <xsl:copy-of select="@*[local-name() != 'id' and local-name() != 'name' and local-name() != 'mandatory' and local-name() != 'type']"/> 273 275 <xsl:apply-templates select="text()"/> 274 276 </textarea> … … 280 282 </xsl:when> 281 283 <xsl:otherwise> 282 <xsl:text>[ Unknown Item-Type! ]</xsl:text> 284 <xsl:text>[ Unknown Item-Type! ]</xsl:text> 283 285 </xsl:otherwise> 284 286 </xsl:choose>
