Re: [Xsltforms-support] output pane ... show XML code
Brought to you by:
alain-couthures
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 **************************************************************** |