You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
785 B
XML
27 lines
785 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<xsl:stylesheet version="1.0"
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
|
|
<xsl:output method="text" encoding="utf-8"/>
|
|
|
|
<xsl:template match="/config">
|
|
<xsl:text>fetch:</xsl:text>
|
|
<xsl:for-each select="*[@id]">
|
|
<xsl:text> portal-</xsl:text>
|
|
<xsl:value-of select="@id"/>
|
|
<xsl:text>.xml</xsl:text>
|
|
</xsl:for-each>
|
|
<xsl:text> </xsl:text>
|
|
<xsl:apply-templates select="*[@id]"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="/config/*">
|
|
<xsl:text>portal-</xsl:text>
|
|
<xsl:value-of select="@id"/>
|
|
<xsl:text>.xml: wget -O $@ --tries=1 --no-check-certificate '</xsl:text>
|
|
<xsl:value-of select="string(.)"/>
|
|
<xsl:text>' 2>> wget.log || true </xsl:text>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|