Code example for Node

Methods: getOwnerDocument

0
            Node context, int pos, int len,
            Node parent, Node nextSibling)
    throws TransformerException 
  { 
    Document doc = (context instanceof Document) ? (Document) context :
      context.getOwnerDocument();
    if (langTemplate == null)
      { 
        lang = null;
      } 
    else 
      { 
        DocumentFragment fragment = doc.createDocumentFragment();
        langTemplate.apply(stylesheet, mode, context, pos, len,
                           fragment, null);
        lang = Expr.stringValue(fragment);
      } 
    if (dataTypeTemplate == null)
      { 
        dataType = "text";
      } 
    else 
      { 
        DocumentFragment fragment = doc.createDocumentFragment();
        dataTypeTemplate.apply(stylesheet, mode, context, pos, len,
                               fragment, null);
        dataType = Expr.stringValue(fragment);
      } 
    if (orderTemplate == null)
      { 
        descending = false;
      } 
    else 
      { 
        DocumentFragment fragment = doc.createDocumentFragment();
        orderTemplate.apply(stylesheet, mode, context, pos, len,
                            fragment, null);
        String order = Expr.stringValue(fragment);
        descending = "descending".equals(order);
      } 
    if (caseOrderTemplate == null)
      { 
        caseOrder = DEFAULT;
      } 
    else 
      { 
        DocumentFragment fragment = doc.createDocumentFragment();
        caseOrderTemplate.apply(stylesheet, mode, context, pos, len,
                                fragment, null);
        String co = Expr.stringValue(fragment);
        caseOrder = "upper-first".equals(co) ? UPPER_FIRST :
          "lower-first".equals(co) ? LOWER_FIRST :
          DEFAULT;
Experience pair programming with AI  Get Codota for Java