@axway/api-builder-plugin-fn-xslt
v4.0.2
Published
XSLT plugin
Downloads
45
Readme
@axway/api-builder-plugin-fn-xslt
An API Builder flow-node plugin for executing XSLT templates.
Transform XML
This method executes an XSLT stylesheet to generate a string (e.g. XML, JSON, HTML, text). When the output method (as defined in the XSLT) is XML, HTML, or XHTML, then the output may be automatically indented with 2 spaces. Otherwise the resulting indentation is as formatted in the XSLT.
| Param | Type | Required | Description | | --- | --- | --- | --- | | XSLT | string | yes | The XSLT string to apply on the XML input string. | | XML | string | no | The XML string to be transformed. | | Stylesheet params | object | no | External parameters for the stylesheet, which were specified as xsl:param. |
Install
After creating your API Builder service (amplify builder init
), you can install this plugin into your application using npm:
npm install @axway/api-builder-plugin-fn-xslt
The "XSLT" flow-node will then be available in the tools panel when creating or editing Flows.
Changes
4.0.2
- #7538: Update
@axway/api-builder-sdk
dependency.
4.0.1
- #7517: Update @axway/api-builder-sdk dependency.
4.0.0
- #6089: Breaking change: requires minimum Node.js version 16.x.
3.3.5
- #7470: Update @axway/api-builder-sdk dependency.
3.3.4
- #7466: Update @axway/api-builder-sdk dependency.
3.3.3
- #7474: Internal dev-dependency move.
3.3.2
- #7412: Pin in-house dependencies.
3.3.1
- #7408: Internal bump.
3.3.0
- #7413: Fixed bug where invalid XSLT error messages were not parsed correctly and useful information about the error was lost.
- #7413: Pinned the version of
saxon-js
andxslt3
to avoid future automatic breaking changes on update.
3.2.0
- #6933: Replace peerDependency on @axway/api-builder-runtime with
engines.apibuilder
.
3.1.2
- #7057: Updated documentation links.
3.1.1
- #7010: Internal refactor of unit-tests.
3.1.0
- #6898: Output no longer defaults to indented as this can be controlled using XSL. To control indentation, use an xsl:output method.
3.0.1
- #6837: Fixed issue recognizing errors that resulted from from changes introduced in [email protected] and [email protected].
3.0.0
- #6734: breaking change: Minimum API Builder version bumped to
4.52.1
(Giza). - #6734: breaking change: Use
xml
format forXML
andXSLT
parameters.
2.0.1
- #6706: Ensured that the flow-node handles and throws error without the server crashing when there's a process spawning failure.
2.0.0
- #6699: Supports XSLT 2.0 and 3.0 mandatory features (including try/catch, iterate, accumulators, maps, named modes, content value templates, and extended patterns), for more information on supported features, see conformance.
- #6699: Renamed
Transform XML
method toExecute XSLT
. - #6699: On the
Execute XSLT
method, added a newAdvanced
parameter,Stylesheet Params
. - #6699: On the
Execute XSLT
method,XML
parameter is no longer required. - #6699: Changed the
XSLT
icon. - #6699: breaking change: Now requires write access to OS temp folder.
- #6699: breaking change: XML, HTML and XHTML output changed and are now indented with two spaces automatically.
- #6699: breaking change: HTML output now outputs
<!DOCTYPE html>
.
1.0.0
- #6633: Initial release of XSLT flow-node, supporting XSLT 1.0.
License (saxon-js)
This plugin uses saxon-js for transformations. Their license can be found here, and is reproduced below.
Version 1.0, June 2020
Software: This license applies to the packages "xslt3" and "saxon-js"
distributed via npm (https://www.npmjs.com) and to the modules SaxonJS2.js
and SaxonJS2.rt.js available for download from the Saxonica web site
(https://www.saxonica.com/).
Copyright: The copyright in the Software belongs to Saxonica Ltd, except
for third-party components listed in the documentation that are distributed
under license.
Binary form: In this license, "binary form" means the form in which the
Software is issued (this is technically a set of obfuscated JavaScript
files).
Deployment and use. The Software may be copied to any computer where the
primary purpose is the execution of the software on that computer, or on
connected client computers.
Redistribution. Redistribution in binary form, without
modification, is permitted as part of an application that makes use
of the Software, provided that the following conditions are
met:
1) Redistributions must reproduce the above copyright notice and the
following disclaimer in the documentation and/or other materials
provided with the distribution.
2) Except to the extent explicitly permitted by law, no reverse
engineering, decompilation, or disassembly of this software is
permitted.
3) Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
4) Copying the software to a site whose primary purpose is to make
it available to third parties is not permitted without specific
prior written permission.
If you institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the software
itself infringes your patent(s), then your rights granted under this
license shall terminate as of the date such litigation is filed.
DISCLAIMER. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS." ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
License
This code is proprietary, closed source software licensed to you by Axway. All Rights Reserved. You may not modify Axway’s code without express written permission of Axway. You are licensed to use and distribute your services developed with the use of this software and dependencies, including distributing reasonable and appropriate portions of the Axway code and dependencies. Except as set forth above, this code MUST not be copied or otherwise redistributed without express written permission of Axway. This module is licensed as part of the Axway Platform and governed under the terms of the Axway license agreement (General Conditions) located here: https://support.axway.com/en/auth/general-conditions; EXCEPT THAT IF YOU RECEIVED A FREE SUBSCRIPTION, LICENSE, OR SUPPORT SUBSCRIPTION FOR THIS CODE, NOTWITHSTANDING THE LANGUAGE OF THE GENERAL CONDITIONS, AXWAY HEREBY DISCLAIMS ALL SUPPORT AND MAINTENANCE OBLIGATIONS, AS WELL AS ALL EXPRESS AND IMPLIED WARRANTIES, INCLUDING BUT NOT LIMITED TO IMPLIED INFRINGEMENT WARRANTIES, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, AND YOU ACCEPT THE PRODUCT AS-IS AND WITH ALL FAULTS, SOLELY AT YOUR OWN RISK. Your right to use this software is strictly limited to the term (if any) of the license or subscription originally granted to you.