setContextNodeIdToSelectionCommonAncestorContainer

Type: Transform step

Deprecated!

This is deprecated.

Set the contextNodeId stepData property to the common ancestor container of the selection.

This transform is deprecated. Use inline XPath in operations instead.

Instead of:

JSON

"do-something-non-contextual": {
  "label": "Do Something non contextual(r)",
   "steps": [
     {
       "type": "transform/setContextNodeIdToSelectionCommonAncestorContainer"
     },
     {
       "type": "operations/do-something-contextual"
     }
   ]
}

Use:

JSON

"do-something-non-contextual": {
  "label": "Do Something non contextual(r)",
  "steps": [
    {
      "type": "operations/do-something-contextual",
      "data": {
        "contextNodeId": "x__fonto:selection-common-ancestor()"
      }
    }
  ]
}