W3C home > Mailing lists > Public > www-forms@w3.org > March 2005

Re: tree view in xforms

From: Stefano Debenedetti <ste@demaledetti.net>
Date: Wed, 02 Mar 2005 13:21:35 +0100
Message-ID: <4225AFCF.7040705@demaledetti.net>
To: www-forms@w3.org

It's currently not possible due to the use of ID-typed attributes on case and repeat constructs.

It is one of the most sorely missing features, actually *the* missing feature in XForms IMHO.

Now that XForms 1.1 allows for arbitrary creation of nodes anywhere in the instance, maybe this could be solved by making use of the src attribute in a way that controls which are bound to deepely nested instance nodes that are not there when the form is initially loaded are instantiated lazily and only when needed.

Then the problem with switches could be solved by using a NMTOKEN instead of an ID on case and limiting its scope to the nearmost  switch element it appears in. It would probably introduce some incompatibility though because you would need a different attribute for it (name?).

The problem is even worse with repeats, whose ID can appear in XPath expressions and I don't think it would be easily doable, nor it would make sense, to limit their scope in a similar way.

Thank you for asking this, I hope a solution to this problem makes it in XForms 1.1 but that's probably wishful thinking.

Again: not having an easy way to do arbitrarily nested collapsable trees in XForms when being tree-like is one of the most obvious and evident features of XML (and of websites too) is a big problem, even the plain old default IE stylesheet for XML can do that and people have found it so useful that it has implemented in similar ways thousands of times, including in mozilla.

When I say this to potential customers and users of XForms they look at me like if it was impossible to believe, and I understand them: when I found out this was impossible I lost a big part of my XForms enthusiasm myself, which is still pretty big but that was simply huge before I realized that.


Pierre-Alexandre ha scritto:
> Hello,
> I'm trying to make a tree view in xforms. I suppose
> that i must load all the tree in the dynamic data and
> use the xforms:switch,xforms:case
> But it seems to me that this will be a bit complicated
> if the tree is becoming more and more big.
> Is there a simple way to create tree view in xforms ?
> Is anyone as tried to do it?
> Thanks
> Pierre-Alexandre
> Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
> Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/
Received on Wednesday, 2 March 2005 17:10:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:14 UTC