public
Created

Create a mediawiki table from a pentabarf xsc file

  • Download Gist
xsc2mediawiki.xsl
XSLT
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<?xml version="1.0" encoding="iso-8859-15"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:pentabarf="http://pentabarf.org">
 
<xsl:template match="/">
{| class="wikitable" valign="top"
!Titel
!Referent
!Zusammenfassung
!Dauer
!Sprache
!Interessenten
|-
<xsl:for-each select="iCalendar/vcalendar/vevent[category='Lecture']">| [<xsl:value-of select="url" /><xsl:text> </xsl:text><xsl:value-of select="pentabarf:title" />]
| <xsl:for-each select="attendee">
<xsl:value-of select="normalize-space()" />
<xsl:if test="not(position() = last())">, </xsl:if>
</xsl:for-each>
| <xsl:value-of select="summary" />
| <xsl:value-of select="duration" />
| <xsl:value-of select="pentabarf:language" />
|
|-
</xsl:for-each>|}
</xsl:template>
</xsl:stylesheet>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.