Пример #1
0
  /**
   * Cast result object to a result tree fragment.
   *
   * @param support Xpath context to use for the conversion
   * @return A document fragment with this string as a child node
   */
  public int rtf(XPathContext support) {

    DTM frag = support.createDocumentFragment();

    frag.appendTextChild(str());

    return frag.getDocument();
  }