Nikolay R. wrote:
Now I try to customize xsl-files for adding numeration to sections
without titles (I want to add multi-level numbers to the first <p> in
the <section>).
There is no way to do what you want from within XMLmind XML Editor. You
need to download and install XMLmind DITA Converter (ditac for short):
http://www.xmlmind.com/ditac/
Once you have implemented and tested your XSLT stylesheet customization
using ditac, then there is no problem using it in XMLmind XML Editor.
I found ../@number in XPath expressions in the XSL stylesheets, but I
can't find place where this attribute "number" is defined.
There is no such "number" attribute. See below.
Please help me with some advice how to find place of the number-attribute
origination and maybe what XSL-function I should customize to add
numeration for every <section><p>.
The XSLT stylesheets do not process DITA files, they process DITA
*preprocessed* by ditac. These preprocessed files have a ".ditac" extension.
No only ditac slightly changes the contents of the original DITA files,
but it also generates useful info about the DITA document as a whole in
a file called "ditac_lists.ditac_list". The "number" attribute comes
from "ditac_lists.ditac_list".
If you run ditac with the "-preprocess" options, ditac will stop just
after the preprocessing the DITA source files and you'll be able to see
".ditac" files and ``digest file'' "ditac_lists.ditac_list".
More information in "XMLmind DITA Converter Manual", "Chapter 10.
Extensive customization":
http://www.xmlmind.com/ditac/_distrib/doc/manual/howItWorks.html#howItWorks
May be looking at ".ditac" files and at "ditac_lists.ditac_list, you'll
be able to find a way to number <section><p> (e.g. using normal XSLT2
numbering techniques).
I'm sorry not to be able to help you more, but I really don't see an
simple way to achieve what you want.
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support