Subject: Re: how to override &release.latest; ?
To: Hiroki Sato <hrs@NetBSD.org>
From: Hubert Feyrer <hubert@feyrer.de>
List: netbsd-docs
Date: 04/08/2007 15:26:28
On Sun, 8 Apr 2007, Hiroki Sato wrote:
> I think something like the attached patch is needed. You can think the
> scope and linkage of an entity reference (&foo;) is "static" storage
> class in C language. The &foo; defined in an XML file, it can be used
> in the same XML file, but not in the XSL stylesheet. So, redefining
> &release.latest; in the XML file does not affect the templates for
> <portinfo> in the XSL stylesheet.
Sounds good... will this default to set currel=&release.latest; if it's
not given explicitly? (We don't want to hardcode the release number on all
ports pages)
Sorry my xslt-fu is not strong enough to verify/implement this. :(
Thanks!
- Hubert