Thanks for this tip! I will implement it at once. :-)
At any rate, the requested feature is a 'neutral' feature that I would
like to have not only in DITA but also in XHTML. So can a similar
workaround be implemented XHTML files as well?
By the way: I am not certain that it is correct that multi-topic files
are "not that common". I know that it is supposedly not orthodox or
political correct DITA philosophy to keep many topics in the same file.
But then my question is: Is it also not orthodox and kosher to, as a
singular person, use DITA? (Meaning: I understand that for certain
project, especially when more than one person work on a book, for
instance, then it makes sense to keep separate topic. And I have tried
to keep one topic per file. But had it not been possible to keep all
topics in one file, then - for my current project - I would have had to
stop using DITA.
Leif Halvard Silli
On 6 Nov 2018, at 12:02, Hussein Shafie wrote:
The use of DITA multi-topic files (root element = <dita>;
http://docs.oasis-open.org/dita/dita/v1.3/errata02/os/complete/part2-tech-content/langRef/base/dita.html)
is not that common, therefore we'll not implement your feature
request.
The good news are that you can implement this feature yourself in just
2 minutes, from within XXE, without having to mess with any
configuration file of any kind.
1) Open a DITA multi-topic file.
2) Select "Options|Customize Configuration|Customize CSS Stylesheet",
(http://www.xmlmind.com/xmleditor/_distrib/doc/help/customizeConfigurationMenu.html)
3) Insert the CSS snippet below in the text area of the "Customize CSS
Stylesheet" dialog
(http://www.xmlmind.com/xmleditor/_distrib/doc/help/customizeStylesheetDialog.html).
---
dita {
collapsible: yes;
}
dita:before {
display: block;
content: collapser() " (multiple topics)";
}
---
See attached screenshot #1.
4) Click "Customize Stylesheet".
This customization is done once for all and gives the results shown in
attached screenshot #2.
On 11/05/2018 02:26 AM, Leif Halvard Silli wrote:
DITA example:
In a multi topic file, there will be multiple, parallel - eh -
topics.
And each topic can be collapsed. Nice.
However, in order to get an overview over all the topics in the file,
there should be an automatically available "top level topic", which
it
should be impossible and unnecessary to insert (after all, DITA does
not
support nesting of topics). But for this "automatic" top level topic
should nevertheless be possible to activate both “close all” and
"expand
all". When one first uses "close all" and then opens this top level
topic again, all the parallel topics (the virtual "sub topics") would
be
remain closed.
Which in turn would allow you to get a good overview of all the
topics
in the file. This way the user would get a simple overview over all
the
topics in the file. Something whic is very useful, not least if one
keeps more topics than one makes use of in the map file.
Also, this way the user could very simply move topics around in a
logical fashing - in order to keep the topics in the book map order.
XMLmind translation project example:
The .xlf files - the translation/localization files - for XMLmind XML
editor have this feature. (And - ahem - it was I who requested this
feature.) The .xlf files are compareable to multi-topic dita files,
in
one sense, because a single .xlf file contains several parallel files
-
one container element for all the dita transaltion, another container
element for all docbook related translations, and so on. And a multi
topic file works the same way.
HTML example:
But it is not only about DITA: If we consider a XHTML file, then the
title of a page is often not keept inside a <h1> element. The page
might
instead keep several h1-elements, where each h1 is its own topic. And
the overarching title of the file or page is not placed withing h1-h6
elements. This makes sense if we for instance thinka about a Table of
Contents: The title of the book never occurs in the books Table of
Contents. And yet it is the title of the book that keeps everytning
together.
Anyway, there are several contexts - at least DITA and hierachically
laid out XHTMl documents - where we need a way to expand and collaps
parallel topics/articles/sections.
In fact, when I work with XHTML documents in XMLmind XML Editor, I
tend
to add an outer "root" element with a h1-h6 element, just in order to
be
able to collapse/expand the the "sub topics". (I will then use CSS to
make sure the "root element" and its h1-h6 element is hidden from the
"public output".)
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support