You can create a transform with a non-document node, but addressing will work the same as with a document—position 0 refers to the start of the content of the top node, not to the top node itself. So if you’re trying to remove marks from that outer node, this will not work. But doing that is much easier if you just create a copy of the node without the mark, anyway.
1 Like