Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

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

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
Show an ActionStateMachine application log in a readable way
* 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 @@
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>
<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>
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