Subject: Re: specific XSL file for certain pages instead of netbsd-website.xsl for everything
To: None <netbsd-docs@NetBSD.org>
From: Klaus Heinz <k.heinz.maer.fuenf@onlinehome.de>
List: netbsd-docs
Date: 03/22/2005 00:18:54
Hiroki Sato wrote:

>  I made and attached a patch to add the functionality in a slightly
>  different way:

s/slightly different/more complete and structured/

>   - in Makefile, we can use "XMLDOCS= docid:xslt:xml:target"
>     where xslt is the stylesheet, xml is the source xml file,
>     and target is the target filename.  If some of the parameters
>     are not specified, the default ones (<docid>.{xsl,xml,html}) are used.
>     {TARGET,XSLT,XML,SRCS,PARAMS,XSLTPROCOPTS}.<docid> are also available.

Do we really need this short form docid:xslt:xml:target? So far, we have
only very few files which need non-default values for
{XSLT,XML,TARGET}.<docid> and I would prefer to use the variables for
clarity.


If I understand your changes correctly we will need a flag day where we
convert all Makefiles (about 98 right now) from DOCS syntax to XMLDOCS?


> Index: share/mk/web.site.mk
> ===================================================================
> RCS file: /cvsroot/htdocs/share/mk/web.site.mk,v
> retrieving revision 1.30
> diff -d -u -I\$FreeBSD:.*\$ -I\$NetBSD:.*\$ -I\$OpenBSD:.*\$ -I\$DragonFly:.*\$ -I\$Id:.*\$ -I\$hrs:.*\$ -r1.30 web.site.mk
> --- share/mk/web.site.mk	15 Mar 2005 22:55:17 -0000	1.30
> +++ share/mk/web.site.mk	21 Mar 2005 04:41:56 -0000

> +DEPENDS.${_ID}+=	${WEB_PREFIX}/share/xsl/global.xsl
> +DEPENDS.${_ID}+=	${WEB_PREFIX}/share/xsl/portpage.xsl

                                                ^^^^^^^^^^^^
Should every document depend on portpage.xsl when mainly (only?)
htdocs/Ports/<port>/index.xml use the elements from that stylesheet? 


ciao
     Klaus