CopyNamespacesMode EnumerationCopyNamespacesMode EnumerationCopyNamespacesMode Enumeration
Specifies the copy-namespaces mode of an XQuery module.
The CopyNamespacesModeCopyNamespacesModeCopyNamespacesMode
type exposes the following members.
Members
Member | Description | |
---|---|---|
![]() | InheritInheritInherit |
This is equivalent to no-preserve, inherit . The in-scope namespaces of the copied element are the
in-scope namespaces of the constructed node, along with the namespaces used in the name of the element and its
attributes.
|
![]() | NoneNoneNone |
This is equivalent to no-preserve, no-inherit . The in-scope namespaces of the copied element are
only those used in the name of the element and its attributes.
|
![]() | PreservePreservePreserve |
This is equivalent to preserve, no-inherit . The in-scope namespaces of the copied element are the
in-scope namespaces of the original element.
|
![]() | PreserveInheritPreserveInheritPreserveInherit | The in-scope namespaces of the copied element are all the in-scope namespaces of the constructed node, augmented and overridden by all in-scope namespaces of the original element. |
Remarks
The copy-namespaces mode controls the namespace bindings that are assigned when an existing element node is copied by an element constructor or document constructor.
Use the CopyNamespacesModeCopyNamespacesModeCopyNamespacesMode property to set the default copy-namespaces mode.