[oXygen-user] Displaying RAW XML in author view
Mark Baker
Fri Feb 27 09:11:17 CST 2009
I'm dealing with a set of documents in which it is frequently necessary to
display sample XML. It is easy enough, of course, to use CDATA sections or
to escape open angle brackets to bring the samples in as plain text, but I
would like to be able to bring them in as processable XML.
What I'd like to do is this: Create an element <sample-xml> and give it a
content model of any xml but limit the namespace to "sample" and turn off
validation. The markup for a sample would then look like this:
<sample-xml id="sample1">
<foo xmlns="sample">
<bar>foobar</bar>
</foo>
</sample>
The sample is then fully processable. I can suppress the xmlns attribute and
then do anything I want to format and display the XML.
This works fine in text mode, but I have authors who want to work in author
mode, and in author mode, none of the markup shows as text. All that shows
is the content "foobar". I want the content of <sample-xml> to show up as
editable literal markup in author mode. Is there any way to do that? If not
now, would you consider it as a feature enhancement for the future?
Thanks,
Mark
---
Mark Baker
Analecta Communications Inc.
www.analecta.com
+1 613 614 5881
* Experience is normative; language is contingent. *
More information about the oXygen-user
mailing list