Re: [basex-talk] How To Reflect XML Source in HTML Output?

2015-04-17 Thread Christian Grün
I'm use the RESTXQ stuff (very nice) to build a little DITA link management application. In the service of this I need to sometimes show the raw XML source of the docs in the repo. Did you e.g. try to embed the results of file:read-text() or fn:unparsed-text() ? But I may have got wrong what

Re: [basex-talk] How To Reflect XML Source in HTML Output?

2015-04-17 Thread Christian Grün
declare function dftest:xmlToHtmlCode($nodes as node()*) as node()* { pre{ for $node in $nodes return dftest:nodeToHtml($node) }/pre }; You could serialize the nodes... let $input := x/ return pre{ serialize($input) }/pre ...or directly retrieve them from a file: let

[basex-talk] How To Reflect XML Source in HTML Output?

2015-04-17 Thread Eliot Kimber
I'm use the RESTXQ stuff (very nice) to build a little DITA link management application. In the service of this I need to sometimes show the raw XML source of the docs in the repo. I looked at the DBA Web app and it looks like it's using some Javascript for this and I didn't see any obvious

Re: [basex-talk] How To Reflect XML Source in HTML Output?

2015-04-17 Thread Eliot Kimber
serialize() does just what I want: pre { let $map := dftest:testResolveTopicOrMapUri($repo, $branch) return serialize($map) } /pre Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 4/17/15, 12:43 PM, Christian Grün