Subject: Re: CVS commit: htdocs/share/xml
To: None <hubertf@NetBSD.org>
From: Mike M. Volokhov <mishka@apk.od.ua>
List: www-changes
Date: 11/24/2004 09:52:42
On Tue, 23 Nov 2004 21:41:19 +0000 (UTC)
Hubert Feyrer <hubertf@NetBSD.org> wrote:

> 
> Module Name:	htdocs
> Committed By:	hubertf
> Date:		Tue Nov 23 21:41:19 UTC 2004
> 
> Modified Files:
> 	htdocs/share/xml: man-refs.ent
> 
> Log Message:
> add hosts_access(5), inetd.conf(5)

Hi!

Seems we use &man.foo.X; entities so as it much shorten than original
DocBook references. However, why not define our own tag, say <nbman/>,
for NetBSD man pages, just like it done for a <pkg/>. For example:

---- NetBSD DTD ----
<!ENTITY % nbman.volnum.attrib
	"volnum		CDATA		#REQUIRED">
<!ELEMENT nbman - - ((%cptr.char.mix;)+)>
<!ATTLIST nbman
                %common.attrib;
                %nbman.volnum.attrib;
>

---- NetBSD XSL stylesheet ----
short-written man references -->
<xsl:template match="nbman">
  <a>
    <xsl:attribute name="href">
      <xsl:text>http://netbsd.gw.com/cgi-bin/man-cgi?</xsl:text>
      <xsl:value-of select="."/>
      <xsl:text>+</xsl:text>
      <xsl:value-of select="@volnum"/>
      <xsl:text>+NetBSD-current</xsl:text>
    </xsl:attribute>
    <xsl:attribute name="class"><xsl:text>nbman</xsl:text></xsl:attribute>
    <xsl:value-of select="."/>
    <xsl:text>(</xsl:text>
    <xsl:value-of select="@volnum"/>
    <xsl:text>)</xsl:text>
  </a>
</xsl:template>

--
Mishka.