Thread: [Xsltforms-support] output pane ... show XML code
Brought to you by:
alain-couthures
From: peter w. <p....@in...> - 2012-07-17 22:34:06
|
Hello List "Daft Laddie" question here: How do I serialize an XML node so that it can be viewed in an XForms textarea as XML complete with angle brackets, indentation and preferably syntax highlighting? Many thanks Peter ____________________________________________________________ GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™ and most webmails |
From: Dan M. <dan...@gm...> - 2012-07-18 03:00:10
|
Hi Peter, There were some tools that were written by Claudius that used CKEdit with XSLTForms that did this in the past. These tools allowed you to view and edit the XML source for a textarea with markup. You may want to contact him (on the CC). - Dan On Tue, Jul 17, 2012 at 5:33 PM, peter winstanley <p....@in...> wrote: > Hello List > > "Daft Laddie" question here: How do I serialize an XML node so that it can be viewed in an XForms textarea as XML complete with angle brackets, indentation and preferably syntax highlighting? > > Many thanks > > Peter > > ____________________________________________________________ > GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys > Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™ and most webmails > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support -- Dan McCreary NoSQL Evangelist office: (952) 931-9198 cell: (612) 986-1552 |
From: Stephen C. <ste...@gm...> - 2012-07-18 06:00:42
|
Not sure if this is an answer to your problem, but an xslt transform could do this, which relates to another current thread. Also, something like this interface might be useful in xsltforms perhaps: http://xmljs.sourceforge.net/contributedAdd-ons/xpath/sampleApplications/samplePaths/xpathexamples.html On Wed, Jul 18, 2012 at 8:33 AM, peter winstanley <p....@in...> wrote: > Hello List > > "Daft Laddie" question here: How do I serialize an XML node so that it > can be viewed in an XForms textarea as XML complete with angle brackets, > indentation and preferably syntax highlighting? > > Many thanks > > Peter > > ____________________________________________________________ > GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at > http://www.inbox.com/smileys > Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™ and > most webmails > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > |
From: Alain C. <ala...@ag...> - 2012-07-18 20:19:30
Attachments:
beautify.xhtml
|
Hello Peter, I have extended the transform() function in rev. 551 to accept inline XSLT. Please find attached a test case for common colored XML rendering. The third parameter of the transform() function has to be true for inline XSLT and false for an URI. Using inline XSLT allows to add XForms controls to dynamically modify the stylesheet! Thank you for your feedbacks! -Alain Le 18/07/2012 00:33, peter winstanley a écrit : > Hello List > > "Daft Laddie" question here: How do I serialize an XML node so that it can be viewed in an XForms textarea as XML complete with angle brackets, indentation and preferably syntax highlighting? > > Many thanks > > Peter > > ____________________________________________________________ > GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys > Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™ and most webmails > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |
From: C. M. Sperberg-M. <cm...@bl...> - 2012-07-18 22:08:06
|
On Jul 17, 2012, at 4:33 PM, peter winstanley wrote: > Hello List > > "Daft Laddie" question here: How do I serialize an XML node so that it can be viewed in an XForms textarea as XML complete with angle brackets, indentation and preferably syntax highlighting? Various people have suggested ways to do this nicely. If indentation and syntax highlighting are desirable but not absolutely essential, then for quick and dirty results a simple way to display a node in XML syntax is <xf:output value="serialize(.)" mediatype="text/plain"/> Wrapping it in a 'pre' element is a simple way to get it styled in monospace. -- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net **************************************************************** |