You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Harald Wehr <hw...@hs-harz.de> on 2003/05/08 07:50:33 UTC

XMLForms and Layout

During the last weeks we discussed here in our project how the layout of 
xmlform components could be improved. We didn't find useful information 
in the XForms specification. Is there really nothing said about the 
layout of components?

We finally came up to the solution to imitate the "JavaGridBagLayout". 
Every xmlform component gets information of "gridx" and "gridy" and 
possibly "gridwidth" and "gridheight". A stylesheet transforms these 
information into nested HTML tables.

What do you think about this procedure?

Harald



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: XMLForms and Layout

Posted by Ryan Hoegg <rh...@isisnetworks.net>.
Sounds interesting, but a little risky.  First, what are x and y 
measuring? Pixels?  What would this mean on resolution-constrained 
devices?  Secondly, I could see that stylesheet becoming very complex to 
support complex layouts.  For instance, what would it mean to have two 
overlapping elements?  How would the stylesheet support that?

I thought that a more abstract layout model makes more sense.  Some of 
Argyn's "layoutlets" seemed useful such as "row" "list" or 
"vertical-list".  It seems to me that this layout specification should 
be dictating only ordering, relative and absolute positioning of 
elements, and possibly pagination.  The actual translation to visual 
elements should happen in the "presentation" stylesheets at the end of 
pipeline.

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net

Harald Wehr wrote:

> During the last weeks we discussed here in our project how the layout 
> of xmlform components could be improved. We didn't find useful 
> information in the XForms specification. Is there really nothing said 
> about the layout of components?
>
> We finally came up to the solution to imitate the "JavaGridBagLayout". 
> Every xmlform component gets information of "gridx" and "gridy" and 
> possibly "gridwidth" and "gridheight". A stylesheet transforms these 
> information into nested HTML tables.
>
> What do you think about this procedure?
>
> Harald 



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org