setContextNodeIdToSelectionAncestorMatchingDitaClass

Type: Transform step

Deprecated!

Use the setContextNodeIdToSelectionAncestor transform with the "selectionAncestorNodeSpec" set to "fonto:dita-class('xxx')"

Example:

JSON

"do-something": {
  "label": "Do Something",
   "steps": [
     {
       "type": "transform/setContextNodeIdToSelectionAncestorMatchingDitaClass",
       "data": {
         "parentDitaTypes": ["topic/p"]
       }
     }
   ]
}

Imported operation data

  1. contextNodeId

    Type: NodeId

  2. parentDitaTypes

    Type: Array<String> | String