Files
hpr_website/www/eps/hpr2211/hpr2211_parse_enclosure.xsl

18 lines
571 B
XML
Executable File

<?xml version="1.0"?>
<stylesheet version="1.0"
xmlns="http://www.w3.org/1999/XSL/Transform"
xmlns:atom="http://www.w3.org/2005/Atom" >
<output method="text"/>
<template match="/">
<apply-templates select="/rss/channel/item/enclosure"/>
<apply-templates select="atom:feed/atom:entry/atom:link[@rel='enclosure']"/>
</template>
<template match="enclosure">
<value-of select="@url"/><text>&#10;</text>
</template>
<template match="atom:link">
<value-of select="./@href"/><text>&#10;</text>
</template>
</stylesheet>