]> granicus.if.org Git - docbook-dsssl/commitdiff
FeatReq #684561: support more XEP metadata
authorNorman Walsh <ndw@nwalsh.com>
Sun, 13 Apr 2003 18:10:16 +0000 (18:10 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sun, 13 Apr 2003 18:10:16 +0000 (18:10 +0000)
xsl/fo/xep.xsl

index 322c4e6db0a8e58811e5f22c8fb9fc57cd11d5c2..c073cafe805b12227e095b0df7026246b5759ba2 100644 (file)
         <xsl:value-of select="$title"/>
       </xsl:attribute>
     </xsl:element>
+
+    <xsl:if test="//keyword">
+      <xsl:element name="rx:meta-field">
+        <xsl:attribute name="name">keywords</xsl:attribute>
+        <xsl:attribute name="value">
+          <xsl:for-each select="//keyword">
+            <xsl:value-of select="."/>
+            <xsl:if test="position() != last()">
+              <xsl:text>, </xsl:text>
+            </xsl:if>
+          </xsl:for-each>
+        </xsl:attribute>
+      </xsl:element>
+    </xsl:if>
+
+    <xsl:if test="//subjectterm">
+      <xsl:element name="rx:meta-field">
+        <xsl:attribute name="name">subject</xsl:attribute>
+        <xsl:attribute name="value">
+          <xsl:for-each select="//subjectterm">
+            <xsl:value-of select="."/>
+            <xsl:if test="position() != last()">
+              <xsl:text>, </xsl:text>
+            </xsl:if>
+          </xsl:for-each>
+        </xsl:attribute>
+      </xsl:element>
+    </xsl:if>
   </rx:meta-info>
 </xsl:template>