Add RDF support, closes #60

This commit is contained in:
Lucidiot 2021-03-16 20:10:56 +01:00
parent a329f90096
commit 8c6f23c4b1
Signed by: lucidiot
GPG Key ID: 3358C1CA6906FB8D
4 changed files with 9 additions and 3 deletions

BIN
img/rdf.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 924 B

View File

@ -201,6 +201,9 @@
<feed lang="English" format="atom" id="adomsiid-atom">
<link>https://adomsiid.org/feed/atom</link>
</feed>
<feed lang="English" format="rdf" id="adomsiid-rdf">
<link>https://adomsiid.org/feed/rdf</link>
</feed>
</source>
</section>

View File

@ -309,6 +309,7 @@
<xs:restriction base="xs:string">
<xs:enumeration value="rss" />
<xs:enumeration value="atom" />
<xs:enumeration value="rdf" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>

View File

@ -79,13 +79,15 @@
</xsl:attribute>
<xsl:attribute name="type">rss</xsl:attribute>
<xsl:choose>
<!-- Can only guarantee than RSS means RSS 2.0 for our own custom feeds -->
<xsl:when test="@format = 'rss' and ./itsb:output">
<xsl:attribute name="version">RSS2</xsl:attribute>
<xsl:when test="@format = 'rss'">
<xsl:attribute name="version">RSS</xsl:attribute>
</xsl:when>
<xsl:when test="@format = 'atom'">
<xsl:attribute name="version">ATOM</xsl:attribute>
</xsl:when>
<xsl:when test="@format = 'rdf'">
<xsl:attribute name="version">RSS1</xsl:attribute>
</xsl:when>
</xsl:choose>
<xsl:attribute name="xmlUrl">
<xsl:choose>