CSS: Ad support for element category;

XSLT: Add a reference to script postprocess.js to file opml_as_xhtml.xsl;
XSLT: Add support for element category;
Python: Add support for element category.
This commit is contained in:
Schimon Jehudah, Adv. 2024-07-14 12:35:59 +03:00
parent cb4507bb78
commit 8ab7396a36
6 changed files with 46 additions and 21 deletions

View file

@ -53,7 +53,7 @@ xmlns:atom='http://www.w3.org/2005/Atom'>
</xsl:choose>
</title>
<!-- TODO media='print' -->
<link href='/css/stylesheet.css' rel='stylesheet' type='text/css' media='screen'/>
<link rel='stylesheet' type='text/css' media='screen' href='/css/stylesheet.css'/>
<link rel='icon' type='image/svg+xml' href='/graphic/xmpp.svg'/>
<!-- whether language code is of direction right-to-left -->
<xsl:if test='$rtl'>
@ -359,10 +359,21 @@ xmlns:atom='http://www.w3.org/2005/Atom'>
</xsl:choose>
</div>
</xsl:if>
<!-- entry tags -->
<xsl:if test='atom:category/@term'>
<h4>Tags</h4>
<span class='tags'>
<xsl:for-each select='atom:category'>
<xsl:element name='div'>
<xsl:value-of select='@term'/>
</xsl:element>
</xsl:for-each>
</span>
</xsl:if>
<!-- entry enclosure -->
<xsl:if test='atom:link[@rel="enclosure"]'>
<h4>Enclosures</h4>
<div class='enclosures' title='Right-click and Save link as…'>
<span class='enclosures' title='Right-click and Save link as…'>
<xsl:for-each select='atom:link[@rel="enclosure"]'>
<div class='enclosure' title='Right-click and Save link as…'>
<xsl:element name='span'>
@ -392,7 +403,7 @@ xmlns:atom='http://www.w3.org/2005/Atom'>
<br/>
</div>
</xsl:for-each>
</div>
</span>
</xsl:if>
</div>
<!-- entry id -->