Skip to content

Instantly share code, notes, and snippets.

@jcfr
Last active September 27, 2015 17:08
Show Gist options
  • Save jcfr/1303070 to your computer and use it in GitHub Desktop.
Save jcfr/1303070 to your computer and use it in GitHub Desktop.
slicer-4.0-module-acknowledgements.xsl In addition to Acknowledgements, also display Title, Authod/Contributor and License (Thanks Julien)
<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" indent="yes" encoding="UTF-8"/>
<xsl:template name="newline"><xsl:text>&#10;</xsl:text></xsl:template>
<xsl:template match="/executable">
<xsl:text>:'''Title:''' </xsl:text><xsl:value-of select="title"/><xsl:call-template name="newline"/>
<xsl:text>:'''Author(s)/Contributor(s):''' </xsl:text><xsl:value-of select="contributor"/><xsl:call-template name="newline"/>
<xsl:text>:'''License:''' </xsl:text><xsl:value-of select="license"/><xsl:call-template name="newline"/>
<xsl:text>:'''Acknowledgements:''' </xsl:text><xsl:value-of select="acknowledgements"/><xsl:call-template name="newline"/>
</xsl:template>
</xsl:transform>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment