]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
add program element
authorAndré Malo <nd@apache.org>
Sun, 28 Nov 2004 19:20:48 +0000 (19:20 +0000)
committerAndré Malo <nd@apache.org>
Sun, 28 Nov 2004 19:20:48 +0000 (19:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@106837 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/common.dtd
docs/manual/style/xsl/common.xsl

index 07d29dc3f21d2977b348af000a02233af9e3538e..8b9285a45b65f5b82e7e5287a8db785152295472 100644 (file)
@@ -36,7 +36,7 @@
 <!-- Generic tag entities -->
 
 <!ENTITY % inlinetags "em | strong | code | a | br | directive | module |
-img | cite | q | dfn | var | transnote | glossary | phonetic">
+program | img | cite | q | dfn | var | transnote | glossary | phonetic">
 
 <!ENTITY % blocktags "p | example | note | table | ul | ol | dl | pre
 | blockquote">
@@ -73,6 +73,8 @@ img | cite | q | dfn | var | transnote | glossary | phonetic">
                      type   CDATA  #IMPLIED
                      status CDATA  #IMPLIED >
 
+<!ELEMENT program (#PCDATA)>
+
 <!ELEMENT p %Inline;>
 <!ATTLIST p class CDATA  #IMPLIED>
 
index 2f96201697a970b5806bd99a4b44bd2b93837adc..10745f2473afd2a635bc03c943f5aa619783ac5c 100644 (file)
 <!-- /module -->
 
 
+<!-- ==================================================================== -->
+<!-- <program>                                                            -->
+<!-- Inserts a link to referred program                                   -->
+<!-- ==================================================================== -->
+<xsl:template match="program">
+<code class="program">
+    <a href="{$path}/programs/{normalize-space(.)}.html">
+        <xsl:value-of select="normalize-space(.)" />
+    </a>
+</code>
+</xsl:template>
+<!-- /program -->
+
+
 <!-- ==================================================================== -->
 <!-- <related>                                                            -->
 <!-- ==================================================================== -->