Skip to content

scopeandgo/xml-transformation-sinatra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published