Hi,
When you use <xforms:output/> elements in a text, you get extra spaces added that spoil your presentation if you want to use these as you would use <xsl:value/> elements. (See what happens after "62" and after "relax ng" in the capture attached.) This is because OrbeonForms generates <label/> elements with a classes xforms-alert-inactive and xforms-alert after the output itself, such as in: <span id="xforms-element-10" class="xforms-control xforms-output">relax ng</span><label class=" xforms-alert-inactive xforms-alert" for="xforms-element-10"></label> Is that really needed and is there a way to get rid of these <label/> elements? As a workaround, I have embedded these outputs in an element with a specific class (outputOnly) and disabled the display of these <label/> elements through this CSS definition: .outputOnly > .xforms-alert-inactive { display: none; } Is there a better way to achieve that? Thanks, Eric -- GPG-PGP: 2A528005 Lisez-moi sur XMLfr. http://xmlfr.org/index/person/eric+van+der+vlist/ ------------------------------------------------------------------------ Eric van der Vlist http://xmlfr.org http://dyomedea.com (ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax (W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema ------------------------------------------------------------------------ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hmmm...
The answer to my question appears to just be to use a value attribute instead of a ref attribute in xf:output! Sorry for the noise. Eric Le samedi 12 janvier 2008 à 19:50 +0100, Eric van der Vlist a écrit : > Hi, > > When you use <xforms:output/> elements in a text, you get extra spaces > added that spoil your presentation if you want to use these as you would > use <xsl:value/> elements. > > (See what happens after "62" and after "relax ng" in the capture > attached.) > > This is because OrbeonForms generates <label/> elements with a classes > xforms-alert-inactive and xforms-alert after the output itself, such as > in: > > <span id="xforms-element-10" class="xforms-control xforms-output">relax > ng</span><label class=" xforms-alert-inactive xforms-alert" > for="xforms-element-10"></label> > > Is that really needed and is there a way to get rid of these <label/> > elements? > > As a workaround, I have embedded these outputs in an element with a > specific class (outputOnly) and disabled the display of these <label/> > elements through this CSS definition: > > .outputOnly > .xforms-alert-inactive { > display: none; > } > > Is there a better way to achieve that? > > Thanks, > > Eric > Curious about Relax NG? Read my book online. http://books.xmlschemata.org/relaxng/ ------------------------------------------------------------------------ Eric van der Vlist http://xmlfr.org http://dyomedea.com (ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax (W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema ------------------------------------------------------------------------ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws signature.asc (196 bytes) Download Attachment |
Administrator
|
Eric,
On Jan 12, 2008 12:21 PM, Eric van der Vlist <[hidden email]> wrote: > The answer to my question appears to just be to use a value attribute > instead of a ref attribute in xf:output! Yes, exactly, using "value" instead of "ref" works most of the time. But sometimes it doesn't: for instance when the node your output is bound to is a date, and you would like that date to be formatted automatically. What we would like to do is to always have a container element around all the markup generated for a XForms element. This means that you would have the alert for the xforms:output inside a span with a class xforms-output, which would enable you to hide the alert with CSS, without having to add your own span around the xforms:output. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |