On 08/05/2015 04:13 PM, Tyrin Avery wrote:
Hi
We localize our doc and the translator software need us to use the
xml:lang=en_us tag for our topics. I'm trying to find a way to get XML
Mind to include that in the basic topic template. I tried to use the
feature that allows you to customize template elements, but it doesn't
work.

Sorry but I'm not 100% sure to understand what you want to do.



The idea is to customize all the stock topic, concept, reference, task, etc, document templates (those used by "File|New").

Please try to use "Options|Customize Configuration|Save Document As Template" (and not "Options|Customize Configuration|Save Selected Element As Template").

See http://www.xmlmind.com/xmleditor/_distrib/doc/help/customizeConfigurationMenu.html

You need to start by creating say a new Concept file by using "File|New", add xml:lang="en-US" to its root element, add id="concept" to its root element, save the file anywhere you want (the saved file is anyway copied elsewhere) and then select "Options|Customize Configuration|Save Document As Template".

In this dialog box,

http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xmleditapp.app.part.SaveAsTemplateAction.Prompt.html

specify the same info (name, category, order) as for the stock Concept document. This will allow you to override the stock Concept document by a similar one having xml:lang="en-US".




Alternatively, you may want to do the same thing by hand by customizing the DITA Topic configuration.

You need to replace the stock topic templates by similar templates having xml:lang="en-US".

How to do this is explained here:

Customizing an existing configuration
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customizing.html

and more precisely:

Replacing an existing document template
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/replace_template.html




I'm not sure if that's because it's the conbody element or because
it's an attribute, but I think this may be a bug.
If there is another way I can add the xml:lang attribute to my concepts
and tasks templates automatically

See above.



(and in a way I can roll out to my  group) please let me know.

"in a way I can roll out to my  group" is a different problem.

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

Reply via email to