Last active
December 16, 2017 20:53
-
-
Save nevstokes/892ade6d04c4037a438391f279ed2780 to your computer and use it in GitHub Desktop.
Parse the GitHub Atom feed for a project to extract links to releases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet version="1.0" | |
xmlns:atom="http://www.w3.org/2005/Atom" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
> | |
<xsl:output method="text"/> | |
<xsl:template match="/atom:feed"> | |
<xsl:apply-templates select="atom:entry"/> | |
</xsl:template> | |
<xsl:template match="atom:entry"> | |
<xsl:value-of select="atom:link/@href"/> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment