W3C home > Mailing lists > Public > www-forms@w3.org > May 2009

RE: question about embedded instance vs. ref to an xml file

From: Howard, Chris <HowardC@prpa.org>
Date: Wed, 20 May 2009 12:47:39 -0600
Message-ID: <1305E9F69BC3CE49ABCDC8E00492F7021F2E6D@titan.internal.prpa.org>
To: "John Boyer" <boyerj@ca.ibm.com>
Cc: <www-forms@w3.org>
I never did figure out what the problem was, but I got around
it by creating a temporary file which contains the inline
instance data as well as the Xforms elements.
I suspect I wasn't serving the file up using the right mime type or something
when I was doing it dynamically.
So, in the end I don't think it was a problem with inline
vs referenced data.


From: John Boyer [mailto:boyerj@ca.ibm.com]
Sent: Tue 5/12/2009 5:25 PM
To: Howard, Chris
Cc: www-forms@w3.org
Subject: Re: question about embedded instance vs. ref to an xml file

Hard to tell without seeing exact content here. 

If you have external data that stops working when you put it inline, then my first guess would be to ask if you are sure the namespace context set correctly? 

If you have external XML, it starts with a default namespace of xmlns="" whether or not you declare it in the data.  So if you *don't* include xmlns="" in the data, then the unqualified element names take xmlns="" as the default when the data is standalone, but they will take whatever default namespace is inherited from the document when you put the content inline. 

Less likely, but a possibility would be to ask whether the XML contains any leading XMLDecl content, like a DTD.  The XML grammar allows certain content at the beginning of an XML file that cannot be placed into the content of an XML element. 

Hope this helps. 

John M. Boyer, Ph.D.
STSM, Interactive Documents and Web 2.0 Applications
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 <http://www.ibm.com/developerworks/blogs/page/JohnBoyer> 
Blog RSS feed: http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=rssdw <http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=rssdw> 

From: 	"Howard, Chris" <HowardC@prpa.org> 
To: 	<www-forms@w3.org> 
Date: 	05/12/2009 03:01 PM 
Subject: 	question about embedded instance vs. ref to an xml file	


Hi forms experts.

I've run into a little problem.  

I have an xforms file which I can serve up to myself using
apache on one of my unix servers.  It is set up to use
formsPlayer on the client side.  And that is all working fine.

In that setup I'm using an instance reference to an xml file
which is also serveable from the same server.

Now I'm trying to apply that form to some xml files of the
same schema.  But these files are not servable through

So my plan was to use a perl-cgi script and a placeholder
in the xform text.  I open the file requested,  I send out
the first part of my xform, then the guts of the file
as an inline instance definition, then the rest of the xform.

To test that, I'm taking the cgi script output and
serving that up to myself as a file.  And it's different.

Part of the form in the middle of everything isn't displaying.
I've looked it over multiple times, and I don't see
anything wrong with my tags.

The bottom line is that it seems to work differently 
when using an in-line instance definition than it
does with a referenced xml file.

I'm hoping maybe someone can tell me what to look for.
Maybe there is some kind of encoding that I need to do
to my inline instance data?  I don't know.

Chris Howard
Received on Wednesday, 20 May 2009 18:50:59 UTC

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