Mercurial > dive4elements > river
view flys-artifacts/contrib/extract-help.xsl @ 4890:bf38ea4cb0f7
Added bodies to macros. Use the bodies of <dc:call-macro><body></dc:call-macro> as <dc:macro-body/> in tthe macro. Example:
<dc:macro name="greet"><hello><dc:macro-body/></hello></dc:macro>
<dc:call-macro name="greet"><planet>Earth</planet></dc:call-macro>
Result:
<hello><panet>Earth</planet></hello>
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Mon, 28 Jan 2013 18:55:55 +0100 |
parents | ce6bea03156c |
children |
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text"/> <xsl:param name="base-url">https://flys-intern.intevation.de/Flys-3.0/OnlineHilfe</xsl:param> <xsl:param name="module">Fixierungsanalyse</xsl:param> <xsl:template match="//state"> <xsl:value-of select="@helpText"/>=<xsl:value-of select="concat($base-url, '/', $module, '#', @helpText)"/> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="text()"/> </xsl:stylesheet>