Package org.iirds.dita.ot.plugin

# Class LanguageExtractor

java.lang.Object
org.iirds.dita.ot.plugin.LanguageExtractor

public class LanguageExtractor extends Object
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
  Constructor
  Description
  `LanguageExtractor()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `extractLanguage(ToCNode node, Element element)`
  Extract the language from the element and store it at the node.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### LanguageExtractor

    public LanguageExtractor()

- ## Method Details

  - ### extractLanguage

    public void extractLanguage(ToCNode node, Element element)
    Extract the language from the element and store it at the node. It looks up the `xml:lang` attribute at the element. If not present it inherits the language from the `parent` node if available.
    Parameters:
      `node` - the node to set determine the language for
      `element` - the XML element (usually the root element of the topic or map)