Platform API‎ > ‎

XSLT Service

This service supports the application of XSLT 1.0 stylesheets to XML documents.


URI Pattern

Each item in the store has its own URI based on its unique identifier:

http://api.talis.com/tx


Resource Operations

URI PatternMethodRequest BodySemanticsCapability required
/txGET[[#Applying A Stylesheet|Applying A StylesheetNone


Request Parameters

ParameterRequired?DescriptionValues
xml-uriYesThe XML document to transformAn absolute URI
xsl-uriYesThe XSLT transformation to applyAn absolute URI
content-typeNoSpecify the media type for the responseA mime media type


Apply A Stylesheet

This service supports applying XSLT 1.0 stylesheets to XML documents. Both the XML and XSLT documents are referenced by URL so may be either static documents or the dynamically generated output of another service, e.g. a full text search.


Parameter Passing

Any additional request parameters that are present in the query string will be made available as parameters to the XSLT stylesheet.

These should be declared using the <xsl:param> stylesheet element. The variable names in the query string and the stylesheet must obviously match one another.


Security

  • Extension functions are not available
  • 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
Comments