If we consider the DITA philosophy, then each topic file is meant to be - kind of - standalone. Hence it makes sense that one has to specify the language for each topic file = each root file. This is also very much in line with how XML generally works and genereally is expected to work.

That said ...

Had XMLmind XML editor somehow automagically - whenever you create a new topic file - placed a specific xml:lang="value" attribute in the topic file’s root element whose "value" is picked from from the bookmap, then that would have been a innovative thing and fully non-controversial thing.

However, such thing would mean that, for each topic, XXE would have to know what the topics map file is. And, again, the topics of e.g. a manual, are meant to be authored in a distributed kind of way. You do not need to have planned the topic map when you author the topic.

That said ... I would not mind some innovation. However, XXE allready allows you to make your own templates, which could contain the xml:langue="value" you want.

Leif Halvard Silli


On 17 Jan 2020, at 12:12, Hussein Shafie wrote:

On 01/17/2020 11:11 AM, Grundtvig Nielsen Niels wrote:
Good morning! happily documenting, and then my eye is caught by an
unexpected wiggly underline …



·         the .bookmap is set to <bookmap xml:lang="en-GB"> and as
master document

[en-GB shown as a valid example on
https://www.w3.org/TR/REC-xml/#sec-lang-tag]

·         topics have no xml:lang set

· a characteristically en-GB /-our/ spelling in a topic is being
flagged as incorrect



What have I missed? I thought the setting of the .bookmap was inherited
by the topics.


Sorry but this is not the case. Setting xml:lang="en-GB" on bookmap declared as being a master document has no effect whatsoever on the language of its topic modules.

Excerpts from https://www.xmlmind.com/xmleditor/_distrib/doc/help/toolsMenu.html:
---
By grouping a master document and its module documents, you inform XMLmind XML Editor (XXE) that all the module documents referenced or included, directly or indirectly, by the master document are related. When XXE knows that some of the opened documents are related:

* it will more thoroughly check the cross-references which may exist between these documents;

* it will make it easier creating cross-references between these documents;

* it will make it easier following cross-references between these documents;

* if a DITA map contains key definitions, then this map acts not only as a cross-reference creation/validation context for its topics, but it also acts as a key space;

* if the "Easy Profiling" add-on has been installed, then the conditional processing profile selected for the master document is automatically shared by all module documents;

* if the document view area is split in two parts, the module documents opened from a master document will appear at the opposite of this master document. This allows to use the view of the master document as a rudimentary navigation pane.
---

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

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

Reply via email to