[Xsltforms-support] obtaining XML from the user - possible? impossible?
Brought to you by:
alain-couthures
From: C. M. Sperberg-M. <cm...@bl...> - 2012-07-06 23:03:02
|
A rather general question has come up. A friend has asked for a form that asks the user some questions based on the content of an XML document to be supplied by the user. Is there any convenient way to get an XML document that initially resides on the user's hard disk into an XForms instance, so the form can look at it and customize itself accordingly? Or is that impossible? If xf:upload were able to populate an instance (or an element in an instance) with an uploaded document, that would (I think) do what I think I need. But if I read the 1.1 spec correctly, xf:upload data cannot be parsed XML data, only base64Binary and so on. I'd be happy to provide a text widget and have the user copy the file and paste it in, if there were a way to get the parsed XML structure back out, but that has not worked for me in the past. (On the other hand, I think that that is, more or less, how the TinyMCE widget works, so it might be technically feasible.) Does anyone here have relevant experience or advice? Thanks! Michael -- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net **************************************************************** |