Re: [Xsltforms-support] Parsing XML from textarea

2013-10-21 Thread Stephen Cameron
Hi Bill, It's possible to write your own function XPath function in Javascript and have XSLTForms make use of it. That would simply 'unescape' the text string and make it valid XML. On Tue, Oct 22, 2013 at 8:08 AM, William Velasquez < wvelasq...@visiontecnologica.com> wrote: > Let me explain th

Re: [Xsltforms-support] Parsing XML from textarea

2013-10-21 Thread William Velasquez
Let me explain the idea a little bit more: I created an XSLT that generates an XForms from any XML document instance, just allowing the user to paste the XML code in the page an clicking a button to run the transform. An "almost finished" version can be found in http://www.xmlstairways.com/xfor

Re: [Xsltforms-support] Parsing XML from textarea

2013-10-21 Thread Dan McCreary
Hello William, >From what I understand of how XSLTForms works, you can only store "escaped" XML within any textarea control. Most of the rich text editors then make the text look like HTML or XML, but within the browser DOM the text is stored in a single string. When you do a "save" you can then

[Xsltforms-support] Parsing XML from textarea

2013-10-21 Thread William Velasquez
Hi everybody, I'm building an XForms where the user could be able to paste XML code in a textarea and then apply an XSL transformation to the pasted code. In order to be able to do it, I tried two alternatives with no success: 1. Parse the XML code and store it in an instance (there is n