xforms

How can I remove the content of an element when is not relevant?

随声附和 提交于 2019-12-24 14:44:26
问题 If I have a radio button with three options A, B, C and I have an input field that the relevancy depends on if the radio button has the value A. Then: If I select the value A in the radio button, the input field is visible and I can add a value. BUT when I change the radio button to B, the Input field is hidden but the value is still there (if I select A again, I can see the value) Is it possible to remove the value by an event? 回答1: The simplest is to reset the value with a calculate , which

How to create checkbox item resulting with 'yes'/'no' values instead of 'true'/'false'?

你。 提交于 2019-12-24 10:17:05
问题 I've got a problem and hope it's only my lack of experience in XForms. I need to create checkbox item for data that is defined as an enumeration 'Yes'/'No'. Basically it's just boolean value but with another pair of values. What I've already been able to do is something that basically works but need extra data node in model: <xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xxforms="http:/

Orbeon Form Builder - Referring to a control within a Section Template

假如想象 提交于 2019-12-23 21:48:39
问题 I have a number of forms that all reference a 'Header' Section Template. I would like to reference a control in this section template from another control in the form. (Using the method shown here: Write constraint to validate a field based on the value entered in another field in Orbeon Form Builder) I get the following error when I try to reference a control named 'section' in the section template: Undeclared variable in a standalone expression: $section Here is the XPath Expression I am

Re-initialize XBL component on xxforms-iteration-moved

纵饮孤独 提交于 2019-12-23 15:17:26
问题 I have a XBL component which creates a checkbox control in javascript. Value is set in javascript during the component initialization. Component works well when not used inside repeat but inside repeat when I try to move rows up or down XBL control doesn't change the state. xxforms-iteration-moved event is fired on the row which is moved but doesn't fire on the row which changes position during this move. For instance, if I move row 3 to row 2 then xxforms-iteration-moved is fired on row 3

How to view the source of an Orbeon form saved in eXist-db?

这一生的挚爱 提交于 2019-12-23 03:53:30
问题 From the Orbeon XForms tutorial tutorial, I understand that Orbeon saves data in eXist-db (built into Orbeon). The sample application saves the data of a book in xml format in eXist-db. According to the tutorial, to view the data in browser, I first have to disable the orbeon-exist-filter in web.xml , and can then open http://<host_name>/orbeon/exist/rest/db/orbeon/my-bookcast/books.xml . I also understand that when I have made a form using Orbeon Form Builder (without any code using only

How to create Orbeon custom control XBL with predefined visibility, control name, default value?

血红的双手。 提交于 2019-12-23 01:47:08
问题 I have created a custom control (hidden text box with some predefined value), where I want to set visibility=false() , controlName="Mycustom" , default value="This is my custom control" in XBL file. So that whenever we use that custom control from Orbeon Form Builder, it will come with all default values with no need to set anything. XBL: <xbl:xbl xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ev="http://www

Is XForms still a live standard?

我怕爱的太早我们不能终老 提交于 2019-12-22 03:48:26
问题 The XForms standard page seemed to indicate that it was no longer live, and that html5 kinda sorta does the job now. Is this the case? I'm looking at storing heterogenous data nuggets as XML fragments - generating a editor page according to the datatype. 回答1: To add to Phil's answer: The XForms Working Group at W3C is active and currently working on XForms 2.0. See in particular the proposed 2.0 features on the wiki and the in-progress draft of the spec as of Feburary, 2012. Also I don't

Can you style XHTML elements in another namespace using id and class name css selectors?

99封情书 提交于 2019-12-18 05:04:32
问题 I'm developing an application that uses ubiquity-xforms. Previously I had been serving the pages up as text/html with the XHTML 1.0 doctype. If I switched the mime-type to application/xhtml+xml, I would see a pretty big performance improvement, because the javascript could use the get____NS() functions, instead of what it's doing now (slowly iterating through the entire DOM tree every time it needs to select an element). But when I tried this, a bunch of my CSS stopped working. I noticed that

How to get an XForm to display a checkbox?

自古美人都是妖i 提交于 2019-12-13 18:18:14
问题 I seem to be having problems getting a xform to display a check box -- instead it is displaying a text area. All my other items are working correctly, I just can't seem to get this one to work. This is the code inside my model: <takeMoneyOff type="xs:boolean"/> // close the my structure // close the instance <xf:bind id="takeMoneyOff" nodeset="/xForm/takeMoneyOff"/> // close the model And the item this is all referring to for display is: <xf:input ref="takeMoneyOff" class="takeMoneyOffClass">

Orbeon - change font to get polish letters

China☆狼群 提交于 2019-12-13 04:50:13
问题 I'm using Polish characters in forms. Unfortunately, during the generation of the PDF file in automatic mode, all Polish diacritical characters are not printed (ie: text 'zażółć gęślą jaźń' is printed as 'zaó gl ja'). I tried to set properties in file properties-local.xml: <property as="xs:string" name="oxf.fr.pdf.template.font.path.vera" value="path_to_font/font.ttf"/> <property as="xs:string" name="oxf.fr.pdf.font.family.vera" value="Arial"/> or with wildcards: <property as="xs:string" name