On 11/01/2012 01:16 AM, Greg Wilkins wrote:
>
> I'm evaluating xmlmind 5_4_0 as an editor for documentation for the
> Jetty open source project.
>
> We need use CDATA in our program listings but I can't get the
> saveOptions feature to work. I have edited
>
>   addon/config/docbook5/docbook5.xxe
>
> and added the line:
>
>    <cfg:saveOptions cdataSectionElements="programlisting" />
>
> But no joy???
>
> what am I missing?
>
>

The cdataSectionElements attribute contain a list of expressions 
expressed in a small subset of XPath 1.0.

See http://www.xmlmind.com/xmleditor/_distrib/doc/configure/saveOptions.html

XPath 1.0 does not support the default namespace feature.

See http://www.w3.org/TR/xpath/#node-tests
---
A QName in the node test is expanded into an expanded-name using the 
namespace declarations from the expression context. This is the same way 
expansion is done for element type names in start and end-tags except 
that the default namespace declared with xmlns is not used: if the QName 
does not have a prefix, then the namespace URI is null (this is the same 
way attribute names are expanded).
---

Provided that xmlns:db="http://docbook.org/ns/docbook"; is found in the 
configuration file (this is the case with the stock docbook5.xxe), you 
must specify:

<cfg:saveOptions cdataSectionElements="db:programlisting" />

 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to