code: private Text parseText(Node el, Map<String, Scope> scopes) {
          Text text;
          if (nodeAttribute(el, TAG_VAR_ATTR_INHERIT, DEFAULT_INHERIT_VALUE)) {
              text = new Text(
                      nodeAttribute(el, TAG_VAR_ATTR_NAME, Variable.DEFAULT_NAME),
                      null,
                      nodeAttribute(el, TAG_VAR_ATTR_TRANSPARENT, false)
              );
          } else {
              String scopeName = nodeAttribute(el, TAG_SCOPE, Scope.ROOT);
              Scope scope = scopes.get(scopeName);
              if (scope == null) {
                  throw new TextProcessorFactoryException(
                          MessageFormat.format("Scope \"{0}\" not found.", scopeName)
                  );
              }
  
              text = new Text(
                      nodeAttribute(el, TAG_VAR_ATTR_NAME, Variable.DEFAULT_NAME),
                      scope,
                      nodeAttribute(el, TAG_VAR_ATTR_TRANSPARENT, false)
              );
          }
          return text;
      }
docs: Parse text. Text is a part of pattern.
  
  @param el     a DOM-element
  @param scopes map of scopes by name
  @return text