You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Berin Loritsch <bl...@apache.org> on 2003/03/25 15:07:20 UTC
How do you make an external link as part of a tab?
I have something like this:
<bxml label="Binary XML" href="bxml/">
<index label="About" href="index.html"/>
<index label="Using Binary XML" href="useage.html"/>
<index label="API Docs" href="api/"/>
<index label="Test Results" href="test/"/>
</bxml>
However the api/ and test/ links cause Forrest to
crash and not produce the site.
These are produced by external tools, so how do I
get those links working without resorting to full
"http://d-haven.sourceforege.net/bxml/api/" URLs?
Re: How do you make an external link as part of a tab?
Posted by Berin Loritsch <bl...@apache.org>.
Jeff Turner wrote:
>
>> <xsl:if test="not(contains(.,'api/')) and not(starts-with(., 'test/'))">
Actually, it should be "not(contains(., 'test/'))"
Thanks for the heads up.
Re: How do you make an external link as part of a tab?
Posted by Jeff Turner <je...@apache.org>.
On Tue, Mar 25, 2003 at 09:07:20AM -0500, Berin Loritsch wrote:
> I have something like this:
>
> <bxml label="Binary XML" href="bxml/">
> <index label="About" href="index.html"/>
> <index label="Using Binary XML" href="useage.html"/>
> <index label="API Docs" href="api/"/>
> <index label="Test Results" href="test/"/>
> </bxml>
>
> However the api/ and test/ links cause Forrest to
> crash and not produce the site.
It sounds like you are using CVS Forrest (0.4 didn't have this problem).
If so, you can disable crawling of 'api/' and 'test/' by copying the
Forrest filterlinks.xsl file (in xml-forrest/src/resources/stylesheets/)
into src/documentation/resources/stylesheets/, and then edit it to filter
out links beginning with those paths:
< <xsl:if test="not(contains(.,'apidocs')) and not(starts-with(., 'samples/'))">
--
> <xsl:if test="not(contains(.,'api/')) and not(starts-with(., 'test/'))">
filterlinks.xsl is applied when the Cocoon crawler does a
?cocoon-view=links request, so filtering out certain links causes them to
not be crawled.
--Jeff
> These are produced by external tools, so how do I
> get those links working without resorting to full
> "http://d-haven.sourceforege.net/bxml/api/" URLs?
>