W3C home > Mailing lists > Public > www-forms@w3.org > June 2007

Re: XForms and APP clients

From: Nikunj Mehta <nikunj.mehta@oracle.com>
Date: Fri, 01 Jun 2007 09:03:40 -0700
Message-ID: <4660435C.2040203@oracle.com>
To: Elliotte Harold <elharo@metalab.unc.edu>
CC: trs17@pitt.edu, Dustin Whitney <dustin.whitney@gmail.com>, www-forms@w3.org

Elliotte Harold wrote:
> Tyler St. John wrote:
>> What kind of applications is everyone developing with APP??  I'm just 
>> working on a really simple reader/editor.  However, I've ran into 
>> several problems.  I've basically reached a wall in my application 
>> because of the poor ability to handle xhtml content.  This poor 
>> ability may be due to my lack of experience in XForms and APP.  I can 
>> only read in escaped xhtml and not any xhtml wrapped in CDATA.  Any 
>> ideas on what I can do?
> Can you elaborate with examples of what you can and cannot do? To my 
> way of thinking, that shouldn't matter, but perhaps I'm not 
> understanding exactly what you're doing.
So the main issue here is that you cannot present any complex content 
(using XS terminology here), which means no attributes or child elements 
may be created by an xforms:output. Take two basic cases in Atom, where 
that becomes a problem.

Take the following Atom feed:

   <feed xmlns="http://www.w3.org/2005/Atom">

     <title>Example Feed</title>
     <link href="http://example.org/"/>
       <name>John Doe</name>
     <link rel="next" href="http://example.org"/page2"/>

       <title>Atom-Powered Robots Run Amok</title>
       <link href="http://example.org/2003/12/13/atom03"/>
       <summary>Some text.</summary>


I would like to render it using the following XForm model:

<xforms:model id="feed">
    <xforms:instance src="http://example.org/"/>

to the following output:
   <h1>Example Feed</h1>
   <a href="http://example.org/page2">Next page</a>
      <li>John Doe at 2003-12-13T18:30:02Z</li>
      <li><a href="http://example.org/2003/12/13/atom03">Atom-Powered 
Robots Run Amok</a></li>   

The problem here is that the link cannot be constructed in XForms. 
XForms can dump the href of this link as text on the XHTML output, but 
then it would be of little value in the feed reader.

Moreover, if an entry had the following document,

       <title>Atom-Powered Robots Run Amok</title>
       <link rel="alternate" type="text/html"
       <link rel="enclosure" type="audio/mpeg" length="1337"
         <name>John Doe</name>
       <content type="xhtml" xml:lang="en"
         <div xmlns="http://www.w3.org/1999/xhtml">
           <p><i>[Update: The Atom draft is finished.]</i></p>

I would like to be able to take its content element's div and put it in 
to an XHTML document, which I don't think can be done using XForms 1.0 
or 1.1.

IMHO a decent feed reader or APP client cannot be easily constructed 
using XForms as it is currently speced unless one creates custom controls.

Received on Friday, 1 June 2007 16:04:15 UTC

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