Posted by
Jency Chackummoottil on
URL: https://discuss.orbeon.com/XFDL-Integration-tp32484p32503.html
Alex,
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.
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.
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.
These are some of the unsolved difficulties I encounter while
transforming XFDL using XSLT.
Any help would be much appreciated.
Thanks in advance
Jency
-----Original Message-----
From:
[hidden email] [mailto:
[hidden email]] On Behalf Of
Alessandro Vernet
Sent: Thursday, February 01, 2007 8:27 AM
To:
[hidden email]
Subject: Re: [ops-users] XFDL Integration
Hi Jency,
So it seems that everything is positioned with absolute coordinates in
XFDL. This means that the file once converted in XHTML will mostly
likely do the same. In a certain way, that makes things simpler. Did
you encounter any particular difficulty while trying to transform XFDL
into XHTML with XSLT?
Alex
On 1/30/07, Jency Chackummoottil
<
[hidden email]> wrote:
>
> Erik,
>
> I am attaching an XFDL along with the screen shot of the form (ie, how
> the form looks like when we run it using IBM Workplace Forms viewer).
> This XFDL has XForms controls for which it has non-xforms properties
> such as item location, datatype, etc. I need to convert this XFDL to
> XForms so that when I run it in Orbeon, I should get the same look and
> feel (with proper datatype, alignment and size of controls, background
> color etc). I have written an XSL to transform this, but it involves
> much coding and I could not do transformation for all the properties.
> Please find the attached XFDL and the screenshot of the form which
uses
> this XFDL.
>
> Your help would be much appreciated.
>
> Thanks
> Jency
>
> -----Original Message-----
> From: Erik Bruchez [mailto:
[hidden email]] On Behalf Of Erik
Bruchez
> Sent: Wednesday, January 24, 2007 4:01 PM
> To:
[hidden email]
> Subject: Re: [ops-users] XFDL Integration
>
> Jency,
>
> As you noticed Orbeon Forms does not support XFDL, or even converting
> from XFDL to XHTML, out of the box.
>
> The big question to me is not so much whether to use XSLT or not to
> perform the conversion: there is a good chance that using XSLT,
> especially 2.0, will give you all the flexibility you need to perform
> the conversion.
>
> But not knowing XFDL well, I can't tell you whether it is possible to
do
>
> a perfect conversion from XFDL + XForms to XHTML + XForms, what are
the
> trade-offs, etc.
>
> If you could send to the list a short but telling example of a very
> specific issue you are encountering, this could help.
>
> (And if you have trouble with this conversion and can't manage to go
> forward, remember that Orbeon provides support services and that we
> would be happy to help you.)
>
> -Erik
>
> Jency Chackummoottil wrote:
> > Hi,
> >
> >
> >
> > I'm using IBM Workplace Forms Designer tool to create some eForms.
> > Workplace Forms are written in an XML syntax called XFDL (eXtensible
> > Forms Description Language), and support the XForms standard. Ie,
> > certain controls are written in xforms. My application is in orbeon.
I
>
> > need to convert this XFDL to XHTML + XForms so that I could run
> directly
> > in Orbeon. Now I have written an xpl which does an xsl transform to
> the
> > input XFDL so that only the required xforms tag are taken from the
> xfdl
> > and create an xhtml using those tags. But this involves a bit
> > complication, because XFDL has not only xforms controls, but also
some
>
> > tags like itemlocation, datatype etc too which does not have the
> xforms
> > namespace. So I feel writing an xsl transform to convert the whole
> XFDL
> > to XForms is complicated.
> >
> >
> >
> > Is there some way to do the same? Would you please provide me the
> sample
> > code too since I'm new to Orbeon.
> >
> >
> >
> > Thanks
> >
> > Jency
>
> --
> 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>
>
>
>
--
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