Hello,
Do you mean formatting by the action Format and Indent? For the XML
files that should never be formatted you can just add the attribute
xml:space="preserve" to the root element or add the qualified name of
the root element to the Preserve Space Elements list in Preferences ->
Editor -> Format -> XML.
We will think about a possible implementation of format and indent
options at the document type level (which matches the edited documents
by rules based on the file type, namespace, root local name, etc) but it
sounds like a configuration nightmare. Maybe the paragraph breaks should
be marked up explicitly if they are sensitive to whitespace
normalization and if you have the option of customizing the InCopy INCX
schema in your process.
Regards,
Sorin
Eliot Kimber wrote:
I work with some documents that should *never* be formatted and intended and
some that I would like to always be. I didn't see a way to configure this in
the options.
For example, I often work with InCopy INCX XML, in which whitespace is both
significant and fiddly (it uses things like Unicode paragraph break
characters to signal formatting paragraph breaks--normalizing the whitespace
breaks that).
If there's no way to do this, can you add it as a feature request? It would
be necessary to be able to bind the association by file extension, as well
as namespace, schema, and DTD, since in the case of CS3 INCX, the documents
are in no namespace but do have a distinct extension (.incx).
Cheers,
Eliot
_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user