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 solution in the various BaseX
packages, but I could have missed something.

I hacked a quick little typeswitch transform just to get something but it
doesn't preserve newlines from the source XML (but I notice the DBA Web
app does, so they must be preserved under the covers).

Is there a built-in way to generate escaped XML for use in e.g., HTML
<pre> or is there some silly thing I need to do in my typeswitch to make
sure the newlines make it to the HTML result?

Thanks,

Eliot

—————
Eliot Kimber, Owner
Contrext, LLC
http://contrext.com



Reply via email to