Gawati XML Transformer - REST Service Wrapper on SAXON XSLT
to install a release:
-
Download the release.
-
rename
gawati-xsl-transformer-1.0.x.war
togawati-xsl-transformer.war
and put it in the Tomcat or Jetty webapps folder. -
Test the installation by accessing the url:
http://localhost:<tomcat port>/gawati-xsl-transformer/xml/xslt/test
to build run:
mvn package
which will generate: gawati-xsl-transformer-1.0.x.war
API
/xml/xslt/convert
convert - Expects HTTP Post
- Form parameters submitted as
application/x-www-form-urlencoded
- The following form params are mandatory:
- input_xslt - the XSLT file as a string, this file should be all inclusive, i.e. should not have any imports
- input_file - the XML file to be transformed as a string
- input_params - a string of input params for the XSL transformation, if required. Can be left blank if there are no params. The format is a tilda
~
separatedparam=value
string. e.g.param1=value1~param2=value2
is sending 2 params namedparam1
andparam2
with valuesvalue1
andvalue2
.