calendar-summary: aggreagate autotopia-events.xml
This commit is contained in:
parent
f9fcb8c079
commit
1ee5de82b2
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue