Skip to content

Commit

Permalink
Add a "transdescription" method and call it for transformations so th…
Browse files Browse the repository at this point in the history
…at we see transformation descriptions and extended descriptions. https://code.google.com/p/kettle-cookbook/issues/detail?id=64
  • Loading branch information
d.e.keeley committed Jul 2, 2014
1 parent 9ab288e commit c8713f9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions xslt/kettle-report.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@
<xsl:with-param name="version" select="info/trans_version"/>
<xsl:with-param name="status" select="info/trans_status/text()"/>
</xsl:call-template>
<xsl:call-template name="transdescription"/>


<xsl:apply-templates select="info/parameters"/>
Expand Down
30 changes: 30 additions & 0 deletions xslt/shared.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,36 @@
</xsl:for-each>


</xsl:template>

<xsl:template name="transdescription">
<xsl:param name="node" select="."/>
<xsl:param name="type" select="$item-type"/>
<xsl:for-each select="$node">
<xsl:choose>
<xsl:when test="$node/info/description[text()]">
<pre>
<p class="description">
<xsl:value-of select="$node/info/description"/>
</p>
</pre>
</xsl:when>
<xsl:otherwise>
<p>
This <xsl:value-of select="$type"/> does not have a description.
</p>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$node/info/extended_description[text()]">
<pre>
<p style="font-family:courier;font-size:9pt;color:blue">
<xsl:value-of select="$node/info/extended_description"/>
</p>
</pre>
</xsl:if>
</xsl:for-each>


</xsl:template>

<xsl:variable name="meta">
Expand Down

0 comments on commit c8713f9

Please sign in to comment.