getModelUsingStencil

How to get getModelUsingStencil

Depend on fontoxml-base-flow to make this transform available.

Align a stencil with a node, and place the information model extracted from that structure on the stepData.

Deprecated

This API has been deprecated.

This transform is deprecated, use inline XPath in operations instead: Instead of:

"steps": {
		"type": "transform/getModelUsingStencil",
		"data": {
			"contextStencil": [null, {"someAttribute": {"bindTo": "some-value"}},{"multiple": true}]
		}
}

Use:

"steps": {
		"type": "operation/some-operation-name",
  	"data": {
    		"some-value": "x__$data('contextNode')/@someAttribute"
		}
}

Imported operation data

Name Type Description
contextNodeId NodeId

The nodeId of the node to align the stencil with

stencil Stencil

Stencil containing one or more gaps representing the locations from which to set the values of the model.

Exported operation data

Name Type Description
model Object
Was this page helpful?