Commit 76e614d4 authored by Emmanuel Promayon's avatar Emmanuel Promayon

FIXED log output XSL transformation missing information

The html did not display the parameters or input for most
of the action
parent 82bc2f15
<?xml version="1.0" encoding="UTF-8"?>
<!--
Document : log2html.xsl
Created on : 11 février 2013, 15:00
Author : cfouard
Description:
Show an ActionStateMachine application log in a readable way
/*****************************************************************************
* $CAMITK_LICENCE_BEGIN$
*
* CamiTK - Computer Assisted Medical Intervention ToolKit
* (c) 2001-2018 Univ. Grenoble Alpes, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
* (c) 2001-2019 Univ. Grenoble Alpes, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
*
* Visit http://camitk.imag.fr for more information
*
......@@ -30,6 +25,10 @@
*
* $CAMITK_LICENCE_END$
****************************************************************************/
XSL document to display an ActionStateMachine application log in HTML.
Can be used as a client-side XSLT
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
......@@ -222,8 +221,14 @@ td.simple {
<td><span class="actionColor">Inputs</span></td>
<td><span class="actionColor">Outputs</span></td></tr>
<tr>
<td><xsl:apply-templates select="log:parameters"/></td>
<td><xsl:apply-templates select="log:inputs"/></td>
<!-- for some action, the parameters and inputs are logged inside the <applyAction> element
but for most of the action they are logged inside the <state> element.
The two XPath expression below are selecting the <parameters> and <inputs> elements
- inside the current <applyAction> element
- as well as inside the preceding <state> element (which corresponds to the current state)
-->
<td><xsl:apply-templates select="log:parameters|../preceding-sibling::*[1]/log:parameters"/></td>
<td><xsl:apply-templates select="log:inputs|../preceding-sibling::*[1]/log:inputs"/></td>
<td><xsl:apply-templates select="log:outputs"/></td>
</tr>
</table>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment