upload form elements are now labeled with their local-name()
git-svn-id: http://yolanda.mister-muffin.de/svn@335 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
203e7e78b4
commit
9c966f811e
1 changed files with 40 additions and 9 deletions
|
@ -14,34 +14,49 @@
|
||||||
|
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<xsl:for-each select="/page/xforms:instance/*/*">
|
<xsl:for-each select="/page/xforms:instance/*/*">
|
||||||
|
|
||||||
|
<label>
|
||||||
|
<xsl:attribute name="for">
|
||||||
|
<xsl:value-of select="local-name()"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
<xsl:value-of select="local-name()"/>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
|
|
||||||
<xsl:when test="@xsi:type='xsd:base64Binary'">
|
<xsl:when test="@xsi:type='xsd:base64Binary'">
|
||||||
<input type="file">
|
<input type="file">
|
||||||
<xsl:attribute name="value">
|
<xsl:attribute name="name">
|
||||||
<xsl:value-of select="name()"/>
|
<xsl:value-of select="local-name()"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</input>
|
</input>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
|
||||||
<xsl:when test="@xsi:type='xsd:normalizedString'">
|
<xsl:when test="@xsi:type='xsd:normalizedString'">
|
||||||
<input type="text">
|
<input type="text">
|
||||||
<xsl:attribute name="value">
|
<xsl:attribute name="name">
|
||||||
<xsl:value-of select="name()"/>
|
<xsl:value-of select="local-name()"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</input>
|
</input>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
|
||||||
<xsl:when test="@xsi:type='xsd:string'">
|
<xsl:when test="@xsi:type='xsd:string'">
|
||||||
<textarea>
|
<textarea>
|
||||||
<xsl:value-of select="name()"/>
|
<xsl:attribute name="name">
|
||||||
|
<xsl:value-of select="local-name()"/>
|
||||||
|
</xsl:attribute>
|
||||||
</textarea>
|
</textarea>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
|
||||||
<xsl:when test="@xsi:type='xsd:date'">
|
<xsl:when test="@xsi:type='xsd:date'">
|
||||||
<select>
|
<select>
|
||||||
|
<xsl:attribute name="name">
|
||||||
|
<xsl:value-of select="local-name()"/>
|
||||||
|
</xsl:attribute>
|
||||||
<option>
|
<option>
|
||||||
<xsl:value-of select="name()"/>
|
<xsl:value-of select="local-name()"/>
|
||||||
</option>
|
</option>
|
||||||
<xsl:call-template name="for-loop">
|
<xsl:call-template name="for-loop">
|
||||||
<xsl:with-param name="start">1</xsl:with-param>
|
<xsl:with-param name="start">1</xsl:with-param>
|
||||||
|
@ -51,7 +66,7 @@
|
||||||
</select>
|
</select>
|
||||||
<select>
|
<select>
|
||||||
<option>
|
<option>
|
||||||
<xsl:value-of select="name()"/>
|
<xsl:value-of select="local-name()"/>
|
||||||
</option>
|
</option>
|
||||||
<xsl:call-template name="for-loop">
|
<xsl:call-template name="for-loop">
|
||||||
<xsl:with-param name="start">1</xsl:with-param>
|
<xsl:with-param name="start">1</xsl:with-param>
|
||||||
|
@ -61,7 +76,7 @@
|
||||||
</select>
|
</select>
|
||||||
<select>
|
<select>
|
||||||
<option>
|
<option>
|
||||||
<xsl:value-of select="name()"/>
|
<xsl:value-of select="local-name()"/>
|
||||||
</option>
|
</option>
|
||||||
<xsl:call-template name="for-loop">
|
<xsl:call-template name="for-loop">
|
||||||
<xsl:with-param name="start">1890</xsl:with-param>
|
<xsl:with-param name="start">1890</xsl:with-param>
|
||||||
|
@ -73,8 +88,11 @@
|
||||||
|
|
||||||
<xsl:when test="@xsi:type='xsd:language'">
|
<xsl:when test="@xsi:type='xsd:language'">
|
||||||
<select>
|
<select>
|
||||||
|
<xsl:attribute name="name">
|
||||||
|
<xsl:value-of select="local-name()"/>
|
||||||
|
</xsl:attribute>
|
||||||
<option>
|
<option>
|
||||||
<xsl:value-of select="name()"/>
|
<xsl:value-of select="local-name()"/>
|
||||||
</option>
|
</option>
|
||||||
|
|
||||||
<xsl:variable name="language" select="//@locale" />
|
<xsl:variable name="language" select="//@locale" />
|
||||||
|
@ -102,9 +120,22 @@
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
|
|
||||||
|
<button type="submit" name="submit">
|
||||||
|
<xsl:attribute name="value">
|
||||||
|
<xsl:value-of select="$lang_strings[@id='button_next_page']" />
|
||||||
|
</xsl:attribute>
|
||||||
|
<img src="/images/tango/32x32/actions/go-next.png">
|
||||||
|
<xsl:attribute name="alt">
|
||||||
|
<xsl:value-of select="$lang_strings[@id='button_next_page']" />
|
||||||
|
</xsl:attribute>
|
||||||
|
</img>
|
||||||
|
</button>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
Loading…
Reference in a new issue