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

Re: what should happen when a xf:insert is inside a xforms-select handler?

From: Aaron Reed <aaronr@us.ibm.com>
Date: Wed, 05 Mar 2008 16:12:00 -0600
To: www-forms@w3.org
Message-ID: <fqn61b$c58$1@ger.gmane.org>

Hi John,

You are right in that the form author will probably be able to compare 
an element in a subtree at some level if they know the structure of data 
in both the bound node of the select and nodeset bound to the copy 
element.  But in the world of AJAX and feeds (of course different kinds 
of feeds have different formats), for example, I can certainly see the 
possibility where the form author might not necessarily know the 
structure of one of these things yet still need to know whether the 
bound node has changed already before deciding on an action to take.

I can't say that I can come up with an example that supports my gut 
feeling, though.  And if all of the readers of this thread sit and think 
about it and also can't foresee a scenario that requires a spec change, 
then things should probably stay the way they are.  Worse comes to 
worse, the author can use JS.

Thanks for listening,
--Aaron

John Boyer wrote:
> 
> Hi Aaron,
> 
> I'd like to see the thing which doesn't work.
> 
> One does not have direct tree comparison capabilities, regardless of 
> event order, and it doesn't seem to matter much because the subtrees 
> will often be keyed by the value of a particular element in the subtree 
> anyway...
> 
> Thanks,
> John M. Boyer, Ph.D.
> Senior Technical Staff Member
> Lotus Forms Architect and Researcher
> Chair, W3C Forms Working Group
> Workplace, Portal and Collaboration Software
> IBM Victoria Software Lab
> E-Mail: boyerj@ca.ibm.com  
> 
> Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer
> Blog RSS feed: 
> http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=rssdw
> 
> 
> 
> 
> *Aaron Reed <aaronr@us.ibm.com>*
> Sent by: www-forms-request@w3.org
> 
> 03/05/2008 09:00 AM
> 
> 	
> To
> 	www-forms@w3.org
> cc
> 	
> Subject
> 	Re: what should happen when a xf:insert is inside a xforms-select   
>  handler?
> 
> 
> 	
> 
> 
> 
> 
> 
> 
> Hey John,
> 
> 
>  > Realizing that the above may not win the convenience award, it would,
>  > for anyone who responded to the call for expression of need, cause me to
>  > ask:  what specifically are you trying to do that you can't do?
>  >
> 
> Your workaround will work for cases where the xf:item contains xf:value
> elements.  But I do not believe that the workaround is possible should
> the xf:itemset contain a xf:copy element unless there is an xpath
> function that I'm unaware of (a distinct possibility) to determine node
> tree equality.  I guess it is possible using JS, though (on Firefox, at
> least).
> 
> --Aaron
> 
> 
> 
> 
Received on Wednesday, 5 March 2008 22:23:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:11 GMT