forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <>
Subject Re: using the label from site.xml in links
Date Fri, 07 Nov 2003 10:26:57 GMT
Richard Cao wrote:
> Hello,
> I'm currently trying to convert the Xalan site
> ( from stylebook to forrest


> , but
> am running into some problems. 


> (I'm a first time forrest user, so please
> bear with me)


(I'm in smiley mode again)

> There currently is a resource linking mechanism, in which we have a
> resource.xml file which contains something like:
> <resources>
>     ...
>   <resource id="xslt4j"
>             title="XalanJ Homepage"
>             location=""/>
> </resources>
> In the documents, if we have  <resource-ref idref="xml4j"/>, that will get
> converted to <a href="">Xalan J Homepage</a>
> I'm trying to find a way to do this in forrest, but the best I've come up
> with is using indirect linking.
> In site.xml
> <xml4j label="XalanJ Homepage" href=""/>
> and in the documents, using <link href="site:xml4j">XalanJ Homepage</link>.
> I've read that ext: and external-refs do the same thing without the link
> appearing in the menu, but haven't tried it out. But regardless, using the
> above is close, but I'd rather have the link names in a centralized
> location. Is there some way to use the label attribute from site.xml to
> specify the link name? 

Not AFAIK, but it would indeed be nice to have Forrest insert the link 
label where the link has no content.

So you would do:

   <link href="site:xml4j"/>


   <link href="ext:xml4j"/>

and have it correctly expanded.

I'll see to have this included.

Nicola Ken Barozzi         
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)

View raw message