From: Gary Larsen <gary.larsen@en...> - 2007-03-01 17:39:03
Sorry if this is a bit OT
What I'm trying to get to is displaying the results of xQueryGenerator into
an html textarea (to allow the user to see and copy the result xml).
Right now I'm transforming the query result with:
<textarea readonly="true" style="border:none;width:100%;" rows="40">
I've got two questions:
1. The xml is not displayed indented. I added "declare option
exist:serialize 'indent=yes'" to the query but when I serialize to XML and
view the page source I don't have any indents. Could it be that indent=yes
is not working?
2. Is there a way to escape the XML in the textarea? When copying the XML
from the browser, ampersands in text elements aren't escaped causing
problems on the paste.
Perhaps there is another way to approach this problem? Any ideas are