Transform Service

Transform Service

A service that applies XSL stylesheets to content

Service URI

http://api.talis.com/tx

GET

Returns the result of applying the specified stylesheet against XML fetched from the URI specified in the xml-uri parameter.

Required Parameters

  • xsl-uri - the URI of an XSLT 1.0 stylesheet
  • xml-uri - the URI of an XML document
  • content-type - a valid media type (e.g. application/xml) that the service will use as the value of the content-type HTTP header in the response.

HTTP Response Notes

  • 200 - the request was successful, the result of the transformation is returned in the response

Notes

  • This service supports XSLT 1.0
  • No external references in the stylesheet are resolved - i.e. document() function is not supported, nor are external entity references
  • No processing is performed on the source XML document - i.e. no validation or xinclude
  • All parameters specified for the service URL are passed into the stylesheet and can be accessed using <?xsl:param> (i.e. there will be xsl parameters called $xsl-uri, $xml-uri, $content-type etc)

Examples