Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 866 Bytes

README.md

File metadata and controls

34 lines (27 loc) · 866 Bytes

XML transformation via XSLT

This repo is a handy API service we can use in our Make scenarios to convert XML into HTML (or other XML) via an XSLT.

bundle
bin/dev

And to transform some XML into HTML, pass xml and xslt parameters as either files or plain text:

curl -X POST http://localhost:3000/transform \
  -F "xml=@sample/users-and-goals.xml" \
  -F "xslt=@sample/users-and-goals.xslt"
curl -X POST http://localhost:3000/transform \
  -F "xml=@sample/user-scopes.xml" \
  -F "xslt=@sample/user-scopes.xslt"
curl -X POST http://localhost:3000/transform \
  -F "xml=@sample/user-problems-and-solutions.xml" \
  -F "xslt=@sample/user-problems.xslt"
curl -X POST http://localhost:3000/transform \
  -F "xml=@sample/user-problems-and-solutions.xml" \
  -F "xslt=@sample/user-solutions.xslt"