Re: XFDL Integration

Posted by Alessandro Vernet on
URL: https://discuss.orbeon.com/XFDL-Integration-tp32484p32504.html

Hi Jency,

On 1/31/07, Jency Chackummoottil <[hidden email]> wrote:
> One difficulty I faced during the transformation of XFDL to XHTML using
> XSLT is that in XFDL, we can set the datatype for an input field, its
> min length, max length etc using a non-xform tag (<format>). Please
> refer the attached XFDL document. But in xforms, we add this in
> xforms:model using xforms:bind. So, using XSLT, we need to convert all
> these constraints in the <format> tag in XFDL to the corresponding
> xforms:bind attributes in XForms.

Now I see the <format> element which I overlooked the first time I
went through your XFDL example. So we can have things like:

<format>
   <datatype>string</datatype>
   <constraints>
      <length>
         <min>0</min>
         <max>20</max>
      </length>
   </constraints>
</format>

> Another problem I faced is related to the alert icon. I have set some
> constraints on certain fields and using XSLT, I placed all the controls
> in correct position. But if a constraint failed, the alert icon is shown
> at the top left corner.

Are you saying that you would like the alert icon to be displayed next
to the field but that it gets displayed at the top left corner? If
this is the case, I don't know why this would happen. I would have to
try this out.

> Also, not all the controls are positioned with absolute coordinates. For
> eg, the controls placed inside a xforms:repeat are not positioned using
> absolute coordinates.

Yes, that is an interesting case. And I don't fully understand yet how
the repeat works in XFDL just by looking at the example. But before we
tackle this down, we can start with the 2 other issues you mentioned.

I have some ideas on how to convert the <format> into binds, but the
devil lies in the details of the implementation. So rather than trying
to describe it, I would like to give it a try. Do you have some code
already to do this conversion in XSLT? Would you be willing to
contribute it and share it with the community so we can build on it?
And who knows, if this experiment is successful, this could even ship
out of the box with Orbeon Forms.

Alex
--
Orbeon Forms - Web Forms for the Enterprise, Done the Right Way
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws