From f7e362af160debd955103f9b1167e2778bd7e70a Mon Sep 17 00:00:00 2001 From: Thorsten Vitt <thorsten.vitt@uni-wuerzburg.de> Date: Tue, 26 May 2015 11:16:46 +0200 Subject: [PATCH] documented stylesheet endpoints --- docs/api.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/api.rst b/docs/api.rst index 6d99c1c..e322ee3 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -60,4 +60,15 @@ Up-to-date help At <https://textgridlab.org/1.0/aggregator/help> you can find a short up-to-date API overview that is generated from the code that is actually deployed, refer to this to see which options are actually available on the deployed version. You can also have a look at the WADL (from which the help is generated) at <https://textgridlab.org/1.0/aggregator?_wadl>. +XSLT Stylesheets +================ +Starting with version 1.4.6, the aggregator also exposes the XSLT stylesheets that +are used internally. You can use these using an external XSLT processor – e.g., using the TextGridLab XML editor's `Preview Page <https://dev2.dariah.eu/wiki/display/TextGrid/Preview>`_. + +Here are probably the most interesting endpoints: + +* `stylesheets/preview.xsl` creates a simulated view of the display on TextGridRep, like the ``?simulate=true`` option to the HTML converter. +* `stylesheets/tohtml.xsl` creates the HTML representation as generated by the HTML exporter. + +All stylesheets require an XSLT 2.0 processor, and of course they don't run down aggregation trees but expect a TEI document as input. -- GitLab