This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: website 2
- From: Dave Pawson <davep at dpawson dot freeserve dot co dot uk>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Sat, 27 Apr 2002 14:22:21 +0100
- Subject: Re: DOCBOOK-APPS: website 2
Further investigation, related (I think).
21b1 version btw:
in autolayout.xsl I find
<xsl:template name="tocentry">
<xsl:choose>
<xsl:when test="@href">
<xsl:call-template name="tocentry.href"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="tocentry.page"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="tocentry.href">
<xsl:if test="not(@href)">
<xsl:message terminate="yes">
<xsl:text>All toc entries must have an href attribute.</xsl:text>
</xsl:message>
</xsl:if>
tests for @href, if true calls tocentry.href
which outputs the message if its not there?
regards DaveP
At 13:26 27/04/2002 +0100, Dave Pawson wrote:
>I'm having a problem with the directory structure in website.
>
>layout file
> <toc page="root.xml" dir="svg" filename="index.html">
> <tocentry page="script.xml" dir="script" filename="script.html"
> tocskip="0">
> <tocentry page="animate.xml" filename="animate.html" />
> </tocentry>
> <tocentry page="authoring.xml" dir="authoring"
> filename="authoring.html" tocskip="0">
> <tocentry page="generation.xml" filename="generation.html" />
> </tocentry>
> <tocentry page="accessibility.xml" dir="accessibility"
> filename="accessibility.html" tocskip="0">
>
> </tocentry>
> </toc>
>
>from this I'm hoping for
> ./svg/index.html
> ./svg/script/script.html
> ./svg/script/animate.html
> ./svg/authoring/authoring.html
> ./svg/authoring/generation.html *****
> ./svg/accessibility/accessibility.html
>
>The outcome of running autolayout.xsl on this,
>then website on that output has 'most' of it right,
>except that the **** file, whilst being created in the right place,
>in file authoring.html, the link to it (via a webtoc) is to
>
><a href="../../../../svg/authoring/generation.html">Generating SVG </a>
>
>I.e. the link is to
> ./authoring/generation.html
>
>I *suspect* (since its the only variant on a them I've used before)
>that the use of the dir attribute on toc may be connected, but I'm not sure.
>
>What's wierd is that animate.html is correctly placed, and linked to correctly
>from script.html.
>
>Any hints appreciated,
>Regards DaveP
>
>
>
>