setContextNodeIdToChildOfContextNodeIdMatchingDitaClass

Type: Transform step

Deprecated!

This is deprecated.

Set contextNodeId to the first child of the node identified by the current contextNodeId that matches any of the given DITA class tokens.

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

Instead of:

JSON

"do-something": {
  "label": "Do Something",
  "steps": [
    {
      "type": "transform/setContextNodeIdToChildOfContextNodeIdMatchingDitaClass",
      "data": {
        "childDitaTypes": ["task/taskbody"]
      }
    },
    // (step that uses contextNodeId)
  ]
}

Use:

JSON

"do-something": {
  "label": "Do Something",
  "steps": [
    {
      "type": "(step that uses contextNodeId)",
      "data": {
        "contextNodeId": "x__$data?contextNode/*[fonto:dita-class(., 'task/taskbody')][1]"
      }
    }
  ]
}

Imported operation data

  1. childDitaTypes

    Type: Array<String> | String

  2. contextNodeId

    Type: NodeId