Re: Yelp Speedup



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]