Add RDF support, closes #60
This commit is contained in:
parent
a329f90096
commit
8c6f23c4b1
Binary file not shown.
After Width: | Height: | Size: 924 B |
3
itsb.xml
3
itsb.xml
|
@ -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>
|
||||
|
||||
|
|
1
itsb.xsd
1
itsb.xsd
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue