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
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
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
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
4 matches
Mail list logo