I do not have link from xml documents/forrest menus/tabs. The files are all html files (javadoc files basically) that are present within src\documentation\content\globaljavadocs and rendered as raw html files. The behaviour mentioned in the previous mail doesnt change even if I use .html instead of .ehtml
I was able to make forrest render these static html files by adding the following lines to src\documentation\sitemap.xmap:
<map:match pattern="**.html">
<map:select type="exists">
<map:when test="{project:content}{0}">
<map:read src="" mime-type="text/html"/>
<map:generate type="html" src="" />
<map:serialize type="html"/>
</map:when>
</map:select>
</map:match>
<map:select type="exists">
<map:when test="{project:content}{0}">
<map:read src="" mime-type="text/html"/>
<map:generate type="html" src="" />
<map:serialize type="html"/>
</map:when>
</map:select>
</map:match>
No I am unable to make Lucene index and search these raw html files by making changes to search.xmap.
On 11/13/05, David Crossley <[EMAIL PROTECTED]> wrote:
Karthik Manimaran wrote:
> It was a weird behaviour of my system. The problem stands resolved. I find
> search.xmap in webapp directory. However the object of me touching
> search.xmap is still unresolved. I'm trying to make Lucene search and index
> the raw HTML files (all raw html files and folders are placed in a folder
> globaljavadocs under content). What could be wrong with the following code?
> <!-- Creates a lucene:document from a Forrest document body -->
> <map:match pattern="**body-*.lucene">
>
> <map:select type="exists">
>
> <map:when test="{project:content.globaljavadocs}{1}{2}.ehtml">
> <map:generate type="html" src="" content.globaljavadocs}{1}{2}.ehtml"
> />
> <map:transform src="" />
> </map:when>
>
> <map:when test="{project:content.xdocs }{1}{2}.ehtml">
> <map:generate src="" />
> <map:transform src="" />
> </map:when>
...
Perhaps you missed my previous email on this topic.
Why are you using the .ehtml filename extension.
What filename extension do your globaljavadocs/* have?
Also you mean
{project:content}/globaljavadocs/...
Also do you have a link from your xml source documents
(or forrest menus or tabs) that Lucene will crawl,
linking over to these javadocs.
-David