Package org.iirds.dita.ot.plugin
Class LanguageExtractor
java.lang.Object
org.iirds.dita.ot.plugin.LanguageExtractor
Extract the language from the XML of a node and store it at the node.
- Author:
- Martin Kreutzer, Empolis Information Management GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidextractLanguage(ToCNode node, Element element) Extract the language from the element and store it at the node.
-
Constructor Details
-
LanguageExtractor
public LanguageExtractor()
-
-
Method Details
-
extractLanguage
Extract the language from the element and store it at the node. It looks up thexml:langattribute at the element. If not present it inherits the language from theparentnode if available.- Parameters:
node- the node to set determine the language forelement- the XML element (usually the root element of the topic or map)
-