Transformation Service

From n² wiki

Jump to: navigation, search

This is the Platform API documentation for XSLT transformation service.

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

Contents

[edit] URI Pattern

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

http://api.talis.com/tx

[edit] Resource Operations

URI Pattern Method Request Body Semantics Capability required
/tx GET [[#Applying A Stylesheet|Applying A Stylesheet None

[edit] Request Parameters

Parameter Required? Description Values
xml-uri Yes The XML document to transform An absolute URI
xsl-uri Yes The XSLT transformation to apply An absolute URI
content-type No Specify the media type for the response A mime media type

[edit] 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 content box search.

[edit] 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.

[edit] 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
Personal tools