calendar-summary: aggreagate autotopia-events.xml

This commit is contained in:
Astro 2019-04-27 13:47:06 +02:00
parent f9fcb8c079
commit 1ee5de82b2
2 changed files with 10 additions and 1 deletions

View File

@ -197,7 +197,7 @@ $(NEWSFILES): news.xml $(NAVIGATION) $(STYLE)
$(CALENDAR_SUMMARY) : STYLE=xsl/calendar-summary.xsl
$(CALENDAR_SUMMARY) : NOVALID:=true
$(CALENDAR_SUMMARY) : VFLAGS_IN=$(VFLAGS)
$(CALENDAR_SUMMARY): content/events.xml news.xml
$(CALENDAR_SUMMARY): content/events.xml news.xml autotopia-events.xml
$(call xml_process)
# XCal

View File

@ -25,6 +25,15 @@
</xsl:apply-templates>
</xsl:if>
</xsl:for-each>
<!-- Events aus Autotopia ziehen -->
<xsl:for-each select="document('../autotopia-events.xml')/page/news/newsfile">
<xsl:variable name="news" select="document(concat('../', .))"/>
<xsl:apply-templates select="$news/item/event">
<xsl:with-param name="link"
select="concat('https://autotopia.c3d2.de/event/', substring-before(substring-after(., 'content/autotopia/'), '.xml'), '.html')"/>
</xsl:apply-templates>
</xsl:for-each>
</calendar-summary>
</page>
</xsl:template>