[Xsltforms-support] span class="focus"
Brought to you by:
alain-couthures
From: Grégoire C. <gco...@gm...> - 2010-03-24 12:14:32
|
Hello, With rev 364, in template with name="field" (near line 885), we have : <xsl:if test="local-name() != 'trigger' and local-name() != 'submit' and (local-name() != 'output' or (xforms:label/node() and string($appearance) != 'none'))"> <span class="focus"> <xsl:text/></span> </xsl:if> The presence of the invisible character   is annoying in the case of a <select> or <select1> without a label element : <xf:select1 ref="type_annonce" appearance="full" incremental="true"> <xf:itemset nodeset="instance('instance-types-d-annonce')/resource[@xml:lang=/requete/@xml:lang]/item"> <xf:label ref="label"/> <xf:value ref="value"/> </xf:itemset> </xf:select1> It adds an empty line above the input boxes, where the label would be written, even though there's no label at all. A fix would be to use a "and" instead of the "or" in the <xsl:if>, like this: <xsl:if test="local-name() != 'trigger' and local-name() != 'submit' and (local-name() != 'output' and (xforms:label/node() and string($appearance) != 'none'))"> If this seems correct, I suggest to add it to the svn. Grégoire |