2008-11-11 15:27:08 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
|
|
|
|
|
|
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
|
|
|
|
|
|
|
|
<xsl:param name="link"/>
|
|
|
|
|
|
|
|
<xsl:template match="/html">
|
2019-03-10 00:12:46 +00:00
|
|
|
<xsl:text>
</xsl:text>
|
|
|
|
<xsl:comment> ***************************************************** </xsl:comment>
|
|
|
|
<xsl:comment> This file has been automatically generated. </xsl:comment>
|
|
|
|
<xsl:comment> Please do not modify it, and do not commit it to git. </xsl:comment>
|
|
|
|
<xsl:comment> ***************************************************** </xsl:comment>
|
|
|
|
<xsl:text>
</xsl:text>
|
2008-11-11 15:27:08 +00:00
|
|
|
|
|
|
|
<xsl:element name="newsset">
|
|
|
|
<xsl:element name="news">
|
2020-04-18 19:30:56 +00:00
|
|
|
|
2017-12-31 21:17:48 +00:00
|
|
|
<xsl:attribute name="date">
|
|
|
|
<xsl:value-of select="/html/@newsdate"/>
|
|
|
|
</xsl:attribute>
|
2020-04-18 19:30:56 +00:00
|
|
|
|
2017-12-31 21:17:48 +00:00
|
|
|
<xsl:if test="/html/@type">
|
|
|
|
<xsl:attribute name ="type">
|
|
|
|
<xsl:value-of select="/html/@type"/>
|
|
|
|
</xsl:attribute>
|
|
|
|
</xsl:if>
|
2020-04-18 19:30:56 +00:00
|
|
|
|
2017-12-31 21:17:48 +00:00
|
|
|
<xsl:element name="title">
|
|
|
|
<xsl:value-of select="/html/head/title"/>
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
<xsl:element name="body">
|
2020-05-01 22:03:37 +00:00
|
|
|
<xsl:copy-of select="/html/body/p[1]"/>
|
2017-12-31 21:17:48 +00:00
|
|
|
</xsl:element>
|
2020-04-18 19:30:56 +00:00
|
|
|
|
2017-12-31 21:17:48 +00:00
|
|
|
<xsl:element name="body-complete">
|
|
|
|
<xsl:copy-of select="/html/body/node()"/>
|
|
|
|
</xsl:element>
|
2020-04-18 19:30:56 +00:00
|
|
|
|
|
|
|
<xsl:element name="image">
|
2022-03-09 15:15:07 +00:00
|
|
|
<xsl:attribute name="url">
|
|
|
|
<xsl:value-of select="/html/image/@url"/>
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:attribute name="alt">
|
|
|
|
<xsl:value-of select="/html/image/@alt"/>
|
|
|
|
</xsl:attribute>
|
2020-04-18 19:30:56 +00:00
|
|
|
</xsl:element>
|
|
|
|
|
2017-12-31 21:17:48 +00:00
|
|
|
<xsl:element name="link">
|
|
|
|
<xsl:variable name="the_link">
|
|
|
|
<xsl:value-of select="/html/@link"/>
|
|
|
|
</xsl:variable>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="not(string($the_link))">
|
|
|
|
<xsl:value-of select="$link"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:value-of select="$the_link"/>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:element>
|
2020-04-18 19:30:56 +00:00
|
|
|
|
2017-12-31 21:17:48 +00:00
|
|
|
<xsl:copy-of select="/html/tags" />
|
|
|
|
<xsl:copy-of select="/html/author" />
|
2019-10-11 11:10:33 +00:00
|
|
|
<xsl:copy-of select="/html/podcast" />
|
2019-12-20 17:38:59 +00:00
|
|
|
<xsl:copy-of select="/html/discussion" />
|
2020-04-18 19:30:56 +00:00
|
|
|
|
2008-11-11 15:27:08 +00:00
|
|
|
</xsl:element>
|
|
|
|
</xsl:element>
|
|
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|