Mercurial > hg > index.fcgi > www > www-1
annotate myrss/step1.xsl @ 94:8214951cb8e7
myrss: additional logging
author | paulo |
---|---|
date | Fri, 16 Mar 2018 16:38:56 -0600 |
parents | ab0455f2a832 |
children |
rev | line source |
---|---|
paulo@6 | 1 <?xml version="1.0" encoding="ISO-8859-1"?> |
paulo@7 | 2 <xsl:stylesheet version="1.0" |
paulo@7 | 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
paulo@7 | 4 xmlns:a="http://www.w3.org/2005/Atom" |
paulo@7 | 5 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
paulo@7 | 6 xmlns:r1="http://purl.org/rss/1.0/" |
paulo@7 | 7 xmlns="http://www.pauloang.com/"> |
paulo@6 | 8 |
paulo@7 | 9 <!-- Atom --> |
paulo@6 | 10 <xsl:template match="/a:feed"> |
paulo@6 | 11 <site> |
paulo@6 | 12 <title><xsl:value-of select="a:title"/></title> |
paulo@29 | 13 <link><xsl:value-of select="a:link/@href"/></link> |
paulo@6 | 14 <xsl:for-each select="a:entry"> |
paulo@6 | 15 <headline> |
paulo@6 | 16 <title><xsl:value-of select="a:title"/></title> |
paulo@29 | 17 <link><xsl:value-of select="a:link/@href"/></link> |
paulo@6 | 18 </headline> |
paulo@6 | 19 </xsl:for-each> |
paulo@6 | 20 </site> |
paulo@6 | 21 </xsl:template> |
paulo@6 | 22 |
paulo@7 | 23 <!-- RSS --> |
paulo@6 | 24 <xsl:template match="rss/channel"> |
paulo@6 | 25 <site> |
paulo@6 | 26 <title><xsl:value-of select="title"/></title> |
paulo@6 | 27 <link><xsl:value-of select="link"/></link> |
paulo@6 | 28 <xsl:for-each select="item"> |
paulo@6 | 29 <headline> |
paulo@6 | 30 <title><xsl:value-of select="title"/></title> |
paulo@6 | 31 <link><xsl:value-of select="link"/></link> |
paulo@6 | 32 </headline> |
paulo@6 | 33 </xsl:for-each> |
paulo@6 | 34 </site> |
paulo@6 | 35 </xsl:template> |
paulo@6 | 36 |
paulo@7 | 37 <!-- RDF --> |
paulo@7 | 38 <xsl:template match="rdf:RDF"> |
paulo@7 | 39 <site> |
paulo@7 | 40 <title><xsl:value-of select="r1:channel/r1:title"/></title> |
paulo@7 | 41 <link><xsl:value-of select="r1:channel/r1:link"/></link> |
paulo@7 | 42 <xsl:for-each select="r1:item"> |
paulo@7 | 43 <headline> |
paulo@7 | 44 <title><xsl:value-of select="r1:title"/></title> |
paulo@7 | 45 <link><xsl:value-of select="r1:link"/></link> |
paulo@7 | 46 </headline> |
paulo@7 | 47 </xsl:for-each> |
paulo@7 | 48 </site> |
paulo@7 | 49 </xsl:template> |
paulo@7 | 50 |
paulo@6 | 51 </xsl:stylesheet> |