forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ross Gardler <rgard...@apache.org>
Subject Re: site: URIs with fragment identifiers
Date Wed, 10 May 2006 07:30:26 GMT
Gav... wrote:
> <quote who="David Crossley">
> 
>>Ross Gardler wrote:
>>
>>>Cameron McCormack wrote:
>>>
>>>>Hi David.
>>>>
>>>>David Crossley:
>>>>
>>>>
>>>>>Not sure if this demo is in the Forrest-0.7 fresh site
>>>>>'forrest seed', but it is Forrest-0.8-dev and you can see
>>>>>it here:
>>>>>http://forrest.zones.apache.org/ft/build/forrest-seed/samples/linking.html#site-fragment
>>>>
>>>>Hmm, so you can only link to them by putting them in the site.xml file?
>>>>One for each ID in my documents?  Maybe when the URIs are being
>>>>rewritten, the fragment ID should be stripped off and appended to the
>>>>end of the generated URI.
>>>
>>>That would be good, but don't hold your breath. Patches welcome (and
>>>help available on the dev list).
>>
>>See a very old related issue:
>>http://issues.apache.org/jira/browse/FOR-95
>>
>>-David
>>
> 
> 
> Just wondering about adding an extra match into the locationmap.
> 
> Something like :-
> 
>  <match pattern="**#*">
>    <location src="{1}.xml#{2}" />
>  </match>
> 
> I'm not sure of the correct syntax at this stage, just wanted to throw the
> idea in.
> 

All works fine if we use a normal URL, but if we use the "site:" 
protocol as is requried here the fragement identifier gets lost. 
Therefore, the above would make no difference I'm afraid.

Ross

Mime
View raw message