bug in libcommon.xsl ?

Jason Helfman jhelfman at e-e.com
Mon Nov 29 07:24:02 UTC 2010


On Sun, Nov 28, 2010 at 11:07:23PM -0800, Jason Helfman thus spake:
>I am beating my head against the wall trying to get this to work, but I've
>come to the conclusion that there must be a bug in libcommon.xsl, as the
>template of 'list-heml-advisories' gives the same output for not only
>advisories, but also for notices.
>
>I set up something similar to advisories.sgml to make an errata.html for
>this testing.
>
>In doing the following,  the resulting errata.html.inc has the SA
>advisories, and not the EN notices.
>
><xsl:template match="/">
>   <xsl:call-template name="html-list-advisories">
>     <xsl:with-param name="advisories.xml" select="$advisories.xml" />
>     <xsl:param name="type" select="'notice'" />
>    </xsl:call-template>
></xsl:template>
>
>I've tried so many combinations, and I am convinced that something is broken
>at this point.
>
>Ref:
>http://www.freebsd.org/cgi/cvsweb.cgi/www/share/sgml/libcommon.xsl

Some weird cut-n-paste issue ended up printing out something different,
however, still incorrect, and I still believe this to be a bug.

Here is the xml:
   <xsl:template match="/">
     <xsl:call-template name="html-list-advisories">
        <xsl:with-param name="advisories.xml" select="$advisories.xml" />
        <xsl:with-param name="type" select="'notice'" />
     </xsl:call-template>
   </xsl:template>

The resulting errata.html.inc file has this content:
[jhelfman at eggman ~/www/en/security.jgh]$ cat errata.html.inc 
<p>FreeBSD 6.3-RELEASE released.</p><p>FreeBSD 6.2-RELEASE
released.</p><p>FreeBSD 5.5-RELEASE released.</p><p>FreeBSD 6.1-RELEASE
released.</p><p>FreeBSD 6.0-RELEASE released.</p><p>FreeBSD 5.4-RELEASE
released.</p><p>FreeBSD 4.11-RELEASE released.</p><p>FreeBSD 5.3-RELEASE
released.</p><p>FreeBSD 4.10-RELEASE released.</p><p>FreeBSD 5.2.1-RELEASE
released.</p><p>FreeBSD 5.2-RELEASE released.</p><p>FreeBSD 4.9-RELEASE
released.</p><p>FreeBSD 5.1-RELEASE released.</p><p>FreeBSD 4.8-RELEASE
released.</p><p>FreeBSD 5.0-RELEASE released.</p><p>FreeBSD 4.7-RELEASE
released.</p><p>FreeBSD 4.6.2-RELEASE released.</p><p>FreeBSD 4.6-RELEASE
released.</p><p>FreeBSD 4.5-RELEASE released.</p><p>FreeBSD 4.4-RELEASE
released.</p><p>FreeBSD 4.3-RELEASE released.</p>

-jgh



More information about the freebsd-doc mailing list