org.inria.ns.reflex.xml.dom
Interface ImportStrategy


public interface ImportStrategy

An ImportStrategy embeds the methods used for importing a node from a fragment to a target document fragment.

Author:
Philippe Poulard

Field Summary
static ImportStrategy STANDARD_IMPORT_STRATEGY
          The standard import strategy : a new element is created if the target document is not the same as the source one.
static ImportStrategy XINCLUDE_IMPORT_STRATEGY
          The XInclude import strategy : fixup namespace URIs, xml:lang, xml:base, IDs/IDrefs.
 
Method Summary
 Element importElement(Element element, DOMFragment ancestor, Node node, DOMFragment root)
          Import an element.
 

Field Detail

STANDARD_IMPORT_STRATEGY

static final ImportStrategy STANDARD_IMPORT_STRATEGY
The standard import strategy : a new element is created if the target document is not the same as the source one. The element created is imported with its namespace bindings in scope if they are not in scope of the target node.


XINCLUDE_IMPORT_STRATEGY

static final ImportStrategy XINCLUDE_IMPORT_STRATEGY
The XInclude import strategy : fixup namespace URIs, xml:lang, xml:base, IDs/IDrefs.

Method Detail

importElement

Element importElement(Element element,
                      DOMFragment ancestor,
                      Node node,
                      DOMFragment root)
Import an element.

Parameters:
element - The element to import.
ancestor - The ancestor of the element to import.
node - The target node that belong to the target document.
root - The target root node.
Returns:
The imported element.