Re: Yelp Speedup
- From: Brent Smith <gnome nextreality net>
- To: Don Scorgie <DonScorgie Blueyonder co uk>
- Cc: gnome-doc-devel-list gnome org
- Subject: Re: Yelp Speedup
- Date: Tue, 13 Dec 2005 22:01:04 -0700
Don Scorgie wrote:
Hi list,
I looked through the stylesheets from gnome-doc-utils and noticed it is
imported 4 times in different files:
1: html/db2html.xsl
2: common/db-label.xsl
3: common/db-title.xsl
4: common/db-xref.xsl
Removing the <xsl:import href="../../gettext/gettext.xsl"> commands from
I guess the reason that this was not generating errors due to duplicate
templates was because the xsl:import element was being used, which
allows you to override template definitions. Had xsl:include been used,
this would immediately generated errors.
I can't think of a good reason to import the gettext.xsl stylesheet from
all three of the "common" stylesheets. Either the parent stylesheet,
db2html.xsl should include gettext.xsl, or a single xsl:import should be
done from db-common.xsl, and db2html.xsl should include that.
Shaun, is that right?
--
Brent Smith <gnome nextreality net>
IRC: smitten
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]