Error use of origin attribute in Appendix B.4

View: New views
2 Messages — Rating Filter:   Alert me  

Error use of origin attribute in Appendix B.4

by John Boyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


In [1], it seems the origin attributes need to have a preceding ../ in the expressions because they are evaluated relative to the result of the context attribute.

origin="../item[1]/@rating"

[1] http://www.w3.org/TR/xforms11/#insert-delete-patterns-set-attribute

The other examples that use context and origin together look correct.

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@...  

Blog:
http://www.ibm.com/developerworks/blogs/page/JohnBoyer
Blog RSS feed:
http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=rssdw


Re: Error use of origin attribute in Appendix B.4

by Erik Bruchez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I agree, the example is erroneous.

-Erik

On Apr 29, 2008, at 9:58 PM, John Boyer wrote:

>
> In [1], it seems the origin attributes need to have a preceding ../  
> in the expressions because they are evaluated relative to the result  
> of the context attribute.
>
> origin="../item[1]/@rating"
>
> [1] http://www.w3.org/TR/xforms11/#insert-delete-patterns-set- 
> attribute
>
> The other examples that use context and origin together look correct.
>
> 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@...
>
> Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer
> Blog RSS feed: http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=rssdw
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/