How to suppress copying “id” attribute when pasting XML elements into another module
Posted: Thu Nov 13, 2025 2:51 pm
Hello Team,
We are facing an issue related to the automatic handling of the unique attribute id when copying and pasting elements between modules in Oxygen.
Current Behavior
When copying an element within the same module, Oxygen correctly suppresses the id attribute and does not paste it.
But when copying an element from one module to another module, Oxygen pastes the element along with the existing id attribute, which our users do not want.
This results in duplicate IDs and violates the uniqueness constraints defined in our DTD.
What Customer Want
When pasting an element into any other module, Oxygen should automatically suppress/remove the "id" attribute, exactly as it already does when pasting inside the same module.
What We Tried
We analyzed all related configuration points together with Docufy, but we could not identify where or how Oxygen internally controls this behavior.
It seems Oxygen has some built-in logic to suppress IDs during paste, but we cannot find the extension point or API to override/customize this behavior for cross-module paste operations.
Question
Could you please guide us on:
1. How Oxygen controls the decision to keep or suppress attributes during paste?
2. Whether there is an API, plugin hook, author operation, or framework setting that allows us to remove specific attributes (like id) when pasting content from one module to another?
3. If such behavior is part of Oxygen’s internal implementation, is there a recommended extension/customization point to override it?
Refer attachment for "id" attribute
We are facing an issue related to the automatic handling of the unique attribute id when copying and pasting elements between modules in Oxygen.
Current Behavior
When copying an element within the same module, Oxygen correctly suppresses the id attribute and does not paste it.
But when copying an element from one module to another module, Oxygen pastes the element along with the existing id attribute, which our users do not want.
This results in duplicate IDs and violates the uniqueness constraints defined in our DTD.
What Customer Want
When pasting an element into any other module, Oxygen should automatically suppress/remove the "id" attribute, exactly as it already does when pasting inside the same module.
What We Tried
We analyzed all related configuration points together with Docufy, but we could not identify where or how Oxygen internally controls this behavior.
It seems Oxygen has some built-in logic to suppress IDs during paste, but we cannot find the extension point or API to override/customize this behavior for cross-module paste operations.
Question
Could you please guide us on:
1. How Oxygen controls the decision to keep or suppress attributes during paste?
2. Whether there is an API, plugin hook, author operation, or framework setting that allows us to remove specific attributes (like id) when pasting content from one module to another?
3. If such behavior is part of Oxygen’s internal implementation, is there a recommended extension/customization point to override it?
Refer attachment for "id" attribute