W3C

- DRAFT -

Forms FtF, Cambridge, Ma, USA; Day 3

26 Mar 2010

Agenda

See also: IRC log

Attendees

Present
John_Boyer, Leigh, Nick, Erik, Charlie, Steven
Regrets
Chair
Leigh, Steven
Scribe
klotz

Contents


<scribe> Scribenick: klotz

<John_Boyer> Charlie briefly demonstrates wiring custom dojo control to the XForms model, the specific control providing data formatting of input numbers

<John_Boyer> Not yet connecting MIPs and UI events to the control but working on the interfaces

<John_Boyer> transitioning to JSON

<John_Boyer> numbers, strings, booleans and structure. name-value pairs

<wiecha> {

<wiecha> "LoanRecord" : {

<wiecha> "Currencies" : {

<wiecha> "Currency" : ["USD", "CDN", "Euro"]

<wiecha> },

<wiecha> "StartDate" : "2008-08-08",

<wiecha> "Borrower" : {

<wiecha> "Name" : "John Q. Public",

<wiecha> "Addr" : "123 Main St Tinyville"

<wiecha> },

<wiecha> "Principal" : "1000",

<wiecha> "Currency" : "USD",

<wiecha> "Duration" : "12",

<wiecha> "InterestRate" : "5",

<wiecha> "Monthly-Payment" : "0",

<wiecha> "TotalPayout" : "0"

<wiecha> }

<wiecha> }

how about the JSON in this Paris Hilton search example? http://code.google.com/apis/ajaxsearch/documentation/

<nick> "Currencies" : {

<nick> "Currency" : ["USD", "CDN", "Euro"],

<nick> "Currency" : ["British pound" ]

<nick> },

<nick> ambiguous with

<nick> "Currencies" : {

<nick> "Currency" : ["USD", "CDN", "Euro", "British pound"]

<nick> },

<nick> in charlies XML mapping

<nick> In picoForms you get the 'same' XML as with Charlie

<nick> <json>

<nick> <LoanRecord>

<nick> <Currencies>

<nick> <Currency type="array">USD</Currency>

<nick> <Currency type="array">CDN</Currency>

<nick> <Currency type="array">Euro</Currency>

<nick> </Currencies>

<nick> <StartDate>2008-08-08</StartDate>

<nick> <Borrower>

<nick> <Name>John Q. Public</Name>

<nick> <Addr>123 MainSt Tinyville</Addr>

<nick> </Borrower>

<nick> <Principal>1000</Principal>

<nick> <Currency>USD</Currency>

<nick> <Duration>12</Duration>

<nick> <InterestRate>5</InterestRate>

<nick> <Monthly-Payment>0</Monthly-Payment>

<nick> <TotalPayout>0</TotalPayout>

<nick> </LoanRecord>

<nick> </json>

<ebruchez> http://goessner.net/articles/JsonPath/

<John_Boyer> Charlie, could you show us the select1 for the currency/currencies

<Steeeven> Leigh, did you mean this?

<Steeeven> {"responseData": {

<Steeeven> "results": [

<Steeeven> {

<Steeeven> "GsearchResultClass": "GwebSearch",

<Steeeven> "unescapedUrl": "http://en.wikipedia.org/wiki/Paris_Hilton",

<Steeeven> "url": "http://en.wikipedia.org/wiki/Paris_Hilton",

<Steeeven> "visibleUrl": "en.wikipedia.org",

<Steeeven> "cacheUrl": "http://www.google.com/search?q\u003dcache:TwrPfhd22hYJ:en.wikipedia.org",

<Steeeven> "title": "\u003cb\u003eParis Hilton\u003c/b\u003e - Wikipedia, the free encyclopedia",

<Steeeven> "titleNoFormatting": "Paris Hilton - Wikipedia, the free encyclopedia",

<Steeeven> "content": "\[1\] In 2006, she released her debut album..."

<Steeeven> },

<Steeeven> {

<Steeeven> "GsearchResultClass": "GwebSearch",

<Steeeven> "unescapedUrl": "http://www.imdb.com/name/nm0385296/",

<Steeeven> "url": "http://www.imdb.com/name/nm0385296/",

<Steeeven> "visibleUrl": "www.imdb.com",

<Steeeven> "cacheUrl": "http://www.google.com/search?q\u003dcache:1i34KkqnsooJ:www.imdb.com",

<Steeeven> "title": "\u003cb\u003eParis Hilton\u003c/b\u003e",

<Steeeven> "titleNoFormatting": "Paris Hilton",

<Steeeven> "content": "Self: Zoolander. Socialite \u003cb\u003eParis Hilton\u003c/b\u003e..."

<Steeeven> },

<Steeeven> ...

<Steeeven> ],

<Steeeven> "cursor": {

<Steeeven> "pages": [

<Steeeven> { "start": "0", "label": 1 },

<Steeeven> { "start": "4", "label": 2 },

<Steeeven> { "start": "8", "label": 3 },

<Steeeven> { "start": "12","label": 4 }

<Steeeven> ],

<Steeeven> "estimatedResultCount": "59600000",

<Steeeven> "currentPageIndex": 0,

<Steeeven> "moreResultsUrl": "http://www.google.com/search?oe\u003dutf8\u0026ie\u003dutf8..."

<Steeeven> }

<Steeeven> }

<Steeeven> , "responseDetails": null, "responseStatus": 200}

http://jettison.codehaus.org/

http://stackoverflow.com/questions/559296/java-implementation-of-json-to-xml-conversion

<Steeeven> http://www.w3.org/2010/03/25-forms-minutes.html

<unl> related: http://jackson.codehaus.org/

<John_Boyer> <script src="some url"/>

<John_Boyer> some url?mycallback=foo

<John_Boyer> foo(some json)

<ebruchez> http://en.wikipedia.org/wiki/JSON#JSONP

http://www.agencexml.com/jsoncallback/wikipediasearch.xml

RESOLUTION: The primary use case for JSON with XForms 1.2 is to support interaction with existing data-centric JSON services, not for full-fidelity document-centric XML import/export.

<nick> http://pastie.org/888281

<scribe> ACTION: Charlie Wiecha to research common use cases to support with named JSON conventions and a straw-man for dealing with transforms. [recorded in http://www.w3.org/2010/03/26-forms-minutes.html#action01]

<trackbot> Sorry, couldn't find user - Charlie

<ebruchez> http://stackoverflow.com/questions/559296/java-implementation-of-json-to-xml-conversion

http://www.bramstein.com/projects/xsltjson/

Morning minutes: http://lists.w3.org/Archives/Public/public-forms/2010Mar/0037.html

<nick> http://www.w3.org/MarkUp/Forms/specs/XForms1.2/modules/xpath20/index-all.html

<Steeeven> blog entry link?

<Steeeven> trackbot, help

<trackbot> See http://www.w3.org/2005/06/tracker/irc for help

<Steeeven> trackbot, status

<nick> ack, me

<John_Boyer> it seems contradictory for a form author to say a node is not relevant and also "I *must* show this to the user styled as disabled" If the data *must* be shown to the user, then it can't be non-relevant.

<John_Boyer> we may want it to be the case that a layout doesn't change due to some data being non-relevant, but it should be possible to achieve that effect at the presentation layer

<John_Boyer> By request, here is my blog link: http://www.ibm.com/developerworks/blogs/page/JohnBoyer

<John_Boyer> Actually, the request was specifically related to the most recent post: http://www.ibm.com/developerworks/mydeveloperworks/blogs/JohnBoyer/entry/creating_a_dynamic_questionnaire_template_with_a_lotus_form6

<Steeeven> "Typically, non-relevant user interface content is not presented, or it may be styled as disabled. "

<Steeeven> http://www.w3.org/TR/xforms/#model-prop-relevant

http://en.wikipedia.org/wiki/Being_and_Time

<table>

<tr> <th>HTML4</th><th>control present, visible, unavailable</th><th>get events</th><th>prunes</th></tr>

<tr> <td>ERIK</td><td>control absent</td><td>no events</td><td>prune</td></tr>

<tr> <td>XF11</td><td>present, maybe visible, unavailable</td><td>events but no handlers</td><td>prune</td></tr>

</table>

Summary of Action Items

[NEW] ACTION: Charlie Wiecha to research common use cases to support with named JSON conventions and a straw-man for dealing with transforms. [recorded in http://www.w3.org/2010/03/26-forms-minutes.html#action01]
 
[End of minutes]

Minutes formatted by David Booth's scribe.perl version 1.135 (CVS log)
$Date: 2010/03/26 20:55:52 $

Scribe.perl diagnostic output

[Delete this section before finalizing the minutes.]
This is scribe.perl Revision: 1.135  of Date: 2009/03/02 03:52:20  
Check for newer version at http://dev.w3.org/cvsweb/~checkout~/2002/scribe/

Guessing input format: RRSAgent_Text_Format (score 1.00)

Found ScribeNick: klotz
Inferring Scribes: klotz

WARNING: No "Topic:" lines found.


WARNING: Replacing list of attendees.
Old list: Steven Nick Leigh Erik Charlie John_Boyer unl
New list: John_Boyer Leigh Nick Erik Charlie Steven

Default Present: John_Boyer, Leigh, Nick, Erik, Charlie, Steven
Present: John_Boyer Leigh Nick Erik Charlie Steven
Agenda: http://www.w3.org/MarkUp/Forms/wiki/FtF_2010_03_24_Agenda
Got date from IRC log name: 26 Mar 2010
Guessing minutes URL: http://www.w3.org/2010/03/26-forms-minutes.html
People with action items: charlie wiecha

WARNING: Input appears to use implicit continuation lines.
You may need the "-implicitContinuations" option.


WARNING: No "Topic: ..." lines found!  
Resulting HTML may have an empty (invalid) <ol>...</ol>.

Explanation: "Topic: ..." lines are used to indicate the start of 
new discussion topics or agenda items, such as:
<dbooth> Topic: Review of Amy's report


[End of scribe.perl diagnostic output]