Skip to content

Instantly share code, notes, and snippets.

@John07
Created April 28, 2011 11:25
Show Gist options
  • Save John07/946177 to your computer and use it in GitHub Desktop.
Save John07/946177 to your computer and use it in GitHub Desktop.
Convert Pentabarf schedule.xml to mediawiki table
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" indent="no" encoding="utf-8" />
<xsl:template match='text()|@*' />
<xsl:template match="event">
|-
| ? || ? || FOSSGIS2011-<xsl:value-of select="@id" />-<xsl:value-of select="normalize-space(language)" /><xsl:if test="not(normalize-space(language))">de</xsl:if>-<xsl:value-of select="slug" /> || <xsl:value-of select="title" /> || <xsl:for-each select="persons/person"><xsl:value-of select="." /><xsl:text> </xsl:text></xsl:for-each> || <xsl:value-of select="../../@date" /><xsl:text> </xsl:text><xsl:value-of select="start" /> || <xsl:value-of select="room" />
</xsl:template>
</xsl:transform>
@John07
Copy link
Author

John07 commented Apr 28, 2011

Created for video recordings of the FOSSGIS 2011 conference.
Modification of https://gist.github.com/524185
Run with "xsltproc to_mediawiki.xsl schedule.de.xml"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment