Skip to content

Instantly share code, notes, and snippets.



Last active Dec 9, 2019
What would you like to do?
36C3: Pretalx XML filter out track
set -euo pipefail
# requires curl and xmlstarlet
/usr/bin/curl -s | /usr/bin/xmlstarlet tr /root/filter_fahrplan.xsl - > /mnt/data/
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl=""
<!-- identity template -->
<xsl:template match="@* | node()">
<xsl:apply-templates select="@*|node()"/>
<!-- filter based on track value; omit Klangteppich track events -->
<xsl:template match="schedule/day/room/event[track = 'Klangteppich']"></xsl:template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.