Imported Upstream version 3.1.0
[debian/amanda] / man / xslt / expand-sambadoc.xsl
index 848502c05cd6f4e74a63c995accd45473bd72659..9c9f5034858ca9ae1cc4dfcc7846030297939de3 100644 (file)
        </xsl:copy>
 </xsl:template>
 
+<!-- <manref name="" vol="" /> - makes a link to another manpage -->
+<xsl:template match="manref">
+  <xsl:element name="citerefentry">
+    <xsl:element name="refentrytitle">
+      <xsl:value-of select="@name"/>
+    </xsl:element>
+    <xsl:element name="manvolnum">
+      <xsl:value-of select="@vol"/>
+    </xsl:element>
+  </xsl:element>
+</xsl:template>
+
+<!-- <seealso> .., .., .. </seealso> - creates a see-also section. Note
+  that amanda(8) is always included first, and that spurious text between
+  contained elements will be discarded.  -->
+<xsl:template match="seealso">
+  <xsl:element name="refsect1">
+    <xsl:element name="title">
+      <xsl:text>SEE ALSO</xsl:text>
+    </xsl:element>
+    <xsl:element name="para">
+      <xsl:element name="citerefentry">
+        <xsl:element name="refentrytitle">amanda</xsl:element>
+        <xsl:element name="manvolnum">8</xsl:element>
+      </xsl:element>
+      <xsl:for-each select="*">
+       <xsl:text>, </xsl:text>
+       <xsl:apply-templates select="." />
+      </xsl:for-each>
+    </xsl:element>
+    <xsl:element name="para">
+      <xsl:text>The Amanda Wiki: </xsl:text>
+      <xsl:element name="ulink">
+        <xsl:attribute name="url">http://wiki.zmanda.com/</xsl:attribute>
+      </xsl:element>
+    </xsl:element>
+  </xsl:element>
+</xsl:template>
+
+<xsl:attribute-set name="amremapB">
+  <xsl:attribute name="remap">B</xsl:attribute>
+</xsl:attribute-set> 
+
+<xsl:attribute-set name="amremapI">
+  <xsl:attribute name="remap">I</xsl:attribute>
+</xsl:attribute-set> 
+
+<xsl:template match="amkeyword">
+  <xsl:element name="emphasis" use-attribute-sets="amremapB">
+    <xsl:value-of select="@keyword"/>
+    <xsl:apply-templates/>
+  </xsl:element>
+</xsl:template>
+
+<xsl:template match="amtype">
+  <xsl:element name="emphasis" use-attribute-sets="amremapI">
+    <xsl:value-of select="@type"/>
+    <xsl:apply-templates/>
+  </xsl:element>
+</xsl:template>
+
+<xsl:template match="amdefault">
+  <xsl:element name="emphasis" use-attribute-sets="amremapI">
+    <xsl:value-of select="@default"/>
+    <xsl:apply-templates/>
+  </xsl:element>
+</xsl:template>
+
 </xsl:stylesheet>