Hello!

Here is one problem that I can't resolved.

I rewrite a DocBook fast editing configuration addon for v.5.1 (will
be available to public, when finished and tested).

When I used quite old addon, that I developed for XXE 3.5.2 (yes, I
know, it is from "ancient" time :) with docbook 4.5 source files, the
following simple command binding works quite well:

<binding>
  <keyPressed code="S" modifiers="alt"/>
  <command name="insert" parameter="after[implicitElement] section" />
</binding>

and inserts new section after the current one (if available) while
pressing Alt+S.

Unfortunately it doesn't work with docbook 5.1 files because it is a
NS-aware source. So I went into depths of the RTFM and found out that
the namespaces should be added with James Clark's notation.

But such form, as explained here [1]:

<binding>
  <keyPressed code="S" modifiers="alt"/>
  <command name="insert" parameter="after[implicitElement]
{http://docbook.org/ns/docbook}section"; />
</binding>

also doesn't work.

The header snippet is:

<article version="5.1" xml:id="some_id_of_article" xml:lang="ru"
         xmlns="http://docbook.org/ns/docbook";
...
>

So, the default namespace for the source is http://docbook.org/ns/docbook.

It is 99% that is my fault that I don't see some note that I should.
But really digging into the depth of the docs didn't lead me to any
success.

If anyone knows, where I should fix it, it would be great.

[1] 
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/commandref.html#selectednode

--
regards,
 Eduard Tibet

--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to