Re: library.gnome.org status



On Wed, 2007-04-18 at 15:39 +0200, Frederic Peters wrote:
> Goran Rakic wrote:
> 
> > > Is this possible to have xsltproc generate such a file along the
> > > others or would it need another call ?
> > 
> > We don't need to include them all, we need to include just one for
> > language selection. Header, foother and others can be done in xslt. I know
> > that, at least, Shaun knows how to do that. Maybe we can just ask him?
> 
> I am not quite sure I understand what you are talking about.  That the
> table of contents part can be generated with current call to xsltproc,
> given the appropriate xsl file ?  Great.
> 
> ... rusty ...
> 
>   <div id="sidebar">
>     <ul id="toc">
>       <xsl:apply-templates mode="db.chunk.content.toc" select="//sect1"/>
>     </ul>
>   </div>
> 
> ...
> 
> <xsl:template mode="db.chunk.content.toc" match="sect1">
>  <li><a>
>    <xsl:attribute name="href">
>      <xsl:value-of select="concat(@id, $db.chunk.extension)"/>
>    </xsl:attribute>
>    <xsl:value-of select="title" /></a></li>
> </xsl:template>
> 
> And this seems to work.  Whooray for forgotten skills.

There's already stuff in db2html-autotoc.xsl to do this.
It just needs to be hooked up and and polished a bit.
I'm working on it now.

Also, you should always call the db.xref.target template
to get the value of the href attribute.

> As for also generating site header/footer, I wonder if if would not be
> easier on maintenance if they were kept as SSI, so there is no need to
> regenerate documentation whenever (example) the copyright tag line
> changes.

A copyright footer should contain the copyright info
from the document itself, not some static site-wide
copyright stuff.  If the document changes at all, the
pages will be regenerated anyway.

Of the four things you mentioned earlier, I think the
only one that makes sense for SSI is the language links,
as it's information we can't possibly know at the time
the page is being built.  (And it's only information we
can't know because documents apparently fail to build.
And I'm beginning to think we should just let the links
stay in and just fix the build failures.)

--
Shaun






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]