add new attribute and comments

This commit is contained in:
vv01f 2022-07-19 18:54:07 +02:00
parent 7b9a5b238b
commit d47a93e10a
1 changed files with 9 additions and 4 deletions

View File

@ -7,8 +7,9 @@
<!DOCTYPE schleudern [
<!ELEMENT schleudern (schleuder)><!-- wrapper -->
<!ELEMENT schleuder (date,image,link,filesize,teaser,preface,references,info)><!-- issue -->
<!ATTLIST schleuder id CDATA #REQUIRED>
<!ELEMENT schleuder (date,image,link,filesize,teaser,preface,references,info)><!-- issue date (print) -->
<!ATTLIST schleuder id CDATA #REQUIRED><!-- issue number -->
<!ATTLIST schleuder printonly CDATA #IMPLIED><!-- marking for not (yet) downloadable issues -->
<!ELEMENT date (#PCDATA)><!-- date of publication, https://www.w3.org/Protocols/rfc822/ as in cli `date -R` or 'Thu, 02 May 2019 23:01:34 +0200' -->
<!ELEMENT image (#PCDATA)><!-- usually the cover page -->
<!ELEMENT link (#PCDATA)><!-- file location or fallback link, here attachments for rss and linked files for download -->
@ -17,7 +18,7 @@
<!ELEMENT teaser (#PCDATA)><!-- short hint on recent print and newest issue online -->
<!ELEMENT preface (#PCDATA)><!-- link to preface, html byproduct of ePUB workflow -->
<!ELEMENT references (#PCDATA)><!-- link to references, html byproduct of ePUB workflow -->
<!ELEMENT info (#PCDATA)><!-- short information in between two issues, added as child to the last published issue, newest first -->
<!ELEMENT info (#PCDATA)><!-- short information in between two issues, e.g. digital release, added as child to the last published issue, newest first -->
<!ATTLIST info date CDATA #IMPLIED><!-- date for information, if missing the date of the parent schleuder will be used -->
<!ENTITY PUBLISHER "Chaos Computer Club">
@ -33,7 +34,11 @@
<xsl:for-each select="schleuder">
<xsl:element name="schleuder">
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute><xsl:text>&#xa;</xsl:text>
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
<xsl:if test="@printonly != ''">
<xsl:attribute name="printonly"><xsl:value-of select="@printonly"/></xsl:attribute>
</xsl:if>
<xsl:text>&#xa;</xsl:text>
<xsl:if test="count(date) &gt; 0">
<xsl:text>&#9;</xsl:text><xsl:element name="date"><xsl:value-of select="date"/></xsl:element><xsl:text>&#xa;</xsl:text>
</xsl:if>