Skip to content

peterprib/node-red-contrib-xsltransform

Repository files navigation

node-red-contrib-xsltransform

=============================

Node-Red node to translate xml content using saxon-js.

This node transforms the xml content in msg.payload is valid according the xsl schema provided. The xsl can be provided or a provided xsl utilised. Cached xsl can be maintained and name provided in topic in msg or tranform node set to a specific xsl.


xslTransform

Takes in XML and transforms it based inline xsl, cached xsl using id in topic (inline is empty) or from standard provided tranforms.

Inline

xslTransform

Selected from list

xslTransform


xslParse

Loads the content in msg.payload as compiled stylesheet in cache with identifier as either content of msg.stylesheet or if missing the topic.


Install

Install via nodered pallete or run the following command in the root directory of your Node-RED install

npm install node-red-contrib-xsltransform

Test/example flow in test/testflow.json


Version

0.5.22 rewrite for saxon.js compile method not available. Changed caching to internalsaxon oblect

0.4.0 Add pulldown for supplied transforms

0.3.0 Big rewrite to use saxon-js as pure javascript and v3 of xslt

0.2.1 base


#Author

Peter Prib