RE: Layout of xforms

Rob - I think Raghu recognises that CSS can control the positioning, but
he seems to be asking how to have separate layouts for different
customers. There are many ways this could be done (dynamic CSS files,
XSLT, scripting, nested forms, etc.), but each has advantages and
disadvantages.

I guess the first question to Raghu though, would be what is your
architecture? What are you using to generate the forms, and what is used
to render them (or are they being translated server-side)?

Regards,

Mark


Mark Birbeck
CEO and CTO
x-port.net Ltd.

Download our XForms processor from
http://www.formsPlayer.com/


-----Original Message-----
From: www-forms-request@w3.org [mailto:www-forms-request@w3.org] On
Behalf Of Rob Bull
Sent: 18 December 2003 17:01
To: Raghu Krishnamurthy
Cc: www-forms@w3.org
Subject: Re: Layout of xforms



Raghu

If you are developing bespoke applications with xForms, 3.2.1 states
"Foreign attributes are allowed on all XForms elements", which should
give you the freedom to position your controls wherever you want; if you
know that your target audience browser supports dhtml for example, why
not use relative/absolute positioning?

For an unkown audience, create your own foreign attributes and let
style-sheets do the work?

Best regards

Rob

----- Original Message -----
From: "Raghu Krishnamurthy" <raghu.krishnamurthy@oracle.com>
To: "Roman Huditsch" <roman.huditsch@hico.com>; <www-forms@w3.org>
Sent: Thursday, December 18, 2003 8:02 AM
Subject: Layout of xforms


Roman
With the  css property called "display" which can hold the value "block"
or "inline",it may be possible to control  the textboxes getting
arranged vertically or horicontally. Thanks for the above info.
Arranging vertically or horizontally is one thing. Can we have an
external stylesheet to control say - TextArea1 and TextArea2 have to be
in row 1 TextArea3 in row2 TextArea4,TextArea5,TextArea6 in row 3 etc

I know I can have one xforms document and have the layout however I
want. But I want  in the xforms document,the ui information to be
restricted to say textareas or input fields etc, and control how they
are laid out on the form from another file.

Any help would be great!

Thanks and Best Regards
Raghu


Roman Huditsch wrote:

> Hi Raghu,
>
> I must commit that I haven't tired it on my own yet, because I'm using
tables to
> arrange my controls.
> But I know that there is a css property called "display" which can 
> hold
the value "block" or "inline" for example.
> With the help of this settings it must be possible to control either 
> the
textboxes are arranged vertically or horicontally.
> See http://www.w3.org/TR/CSS2/visuren.html#block-formatting for more
details.
>
> Hope this helps,
> Roman
>
> Mag.(FH) Roman Huditsch (hRHU )
> Developer .:. Information & Application Engineering 
> _____________________________________________________________________
> hico Informations- und Kommunikations-Management Gesellschaft m.b.H. 
> TechLab, Thomas A. Edison Straße 2. A-7000 Eisenstadt / Austria
> phone: +43/2682/704-61-73; fax: +43/2682/704-71-61-10
> e-mail: roman.huditsch@hico.com
> mobile: +43/664/4102715
>
> -----Ursprüngliche Nachricht-----
> Von: Raghu Krishnamurthy [mailto:raghu.krishnamurthy@oracle.com]
> Gesendet: Mittwoch, 17. Dezember 2003 14:01
> An: Roman Huditsch
> Betreff: Re: AW: Layout of xforms
>
> Roman
> Thanks for the reply.I am using XHTML and I have  been using css to
control the
> font size,color etc.
> But I was not able to control  the layout(one element appearing below
another
> versus beside each other,etc kind of look and feel) using css. Could 
> you please be a little more elaborate as to how I could do the
above.
>
> Thanks and Best Regards
> Raghu
>
> Roman Huditsch wrote:
>
> > Hi Raghu,
> >
> > I suppose you ae using XHTMl as the container language of your 
> > choice. If that's the case, you can of course link your xforms 
> > document to a customer specific Cascading Style Sheet. That should 
> > looks something like:
> >         <link type="text/css" rel="stylesheet" href="customer.css" 
> > />
> >
> > All you have to do then is assign a "class"-Attribut to your 
> > textareas
like
> >         <xforms:textarea class="textarea"...>
> >
> > and define the wanted flow-properties in the CSS like
> >         .textarea {
> >                 display:block;
> >         }
> >
> > I think that should work out.
> >
> > I hope this helped.
> >
> > with best regards,
> > Roman
> >
> > Mag.(FH) Roman Huditsch (hRHU )
> > Developer .:. Information & Application Engineering 
> > ____________________________________________________________________
> > _
> > hico Informations- und Kommunikations-Management Gesellschaft m.b.H.
> > TechLab, Thomas A. Edison Straße 2.
> > A-7000 Eisenstadt / Austria
> > phone: +43/2682/704-61-73; fax: +43/2682/704-71-61-10
> > e-mail: roman.huditsch@hico.com
> > mobile: +43/664/4102715
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Raghu Krishnamurthy [mailto:raghu.krishnamurthy@oracle.com]
> > Gesendet: Mittwoch, 17. Dezember 2003 13:42
> > An: www-forms@w3.org
> > Betreff: Layout of xforms
> > Wichtigkeit: Hoch
> >
> > Hi all
> > I have an xform where currently I have the ui elements(textareas) 
> > appearing one below the other. One of our customers is happy with 
> > this. We have another customer who wants the fields to appear one 
> > beside another,and yet another who wants 2 fields in the first row,3

> > in the next row etc( which he wants to define.)
> > Can we apply a stylesheet to the xforms document that can be changed
to
> > satisfy each of the above needs of different customers ?
> >
> > Thanks and Best Regards
> > Raghu

Received on Thursday, 18 December 2003 13:23:19 UTC