Skip to content

@blabber /xsc2mediawiki.xsl
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Create a mediawiki table from a pentabarf xsc file
<?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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.