Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Forrest: User

Debugging inclusion of custom project sitemap.xmap

 

 

Forrest user RSS feed   Index | Next | Previous | View Threaded


roth at visualclick

Oct 18, 2004, 6:46 AM

Post #1 of 6 (11 views)
Permalink
Debugging inclusion of custom project sitemap.xmap

Hi,

I'm suspecting my project's custom sitemap.xmap to not be included in
Cocoon's sitemap processing (I do not get results from views defined in
it, and DTD pre-processing with my XSLTs as described in "adding a new
content type" does not work at all).

Can anyone familiar with the forrest code and call structure please point
me to the file/location in the code where (1) the check for a custom
sitemap.xmap is located and (2) where it actually gets prepended/
included/mounted (nomenclature???) within the embedded Cocoon processing?
I'm looking for the filepath/line number combination.

I'm hoping to put some code there to actually be sure that my
sitemap.xmap gets included and it is actually a problem with my setup.

I'm using Forrest 0.6 (release).

Regards, Christian.


rgardler at apache

Oct 18, 2004, 6:59 AM

Post #2 of 6 (11 views)
Permalink
Re: Debugging inclusion of custom project sitemap.xmap [In reply to]

Christian Roth wrote:
> I'm suspecting my project's custom sitemap.xmap to not be included in
> Cocoon's sitemap processing (I do not get results from views defined in
> it, and DTD pre-processing with my XSLTs as described in "adding a new
> content type" does not work at all).

If you called it sitemap.xmap and it is located in your
src/documentation folder then it should be loaded, it is more likely an
error in your sitemap.

> Can anyone familiar with the forrest code and call structure please point
> me to the file/location in the code where (1) the check for a custom
> sitemap.xmap is located and (2) where it actually gets prepended/
> included/mounted (nomenclature???) within the embedded Cocoon processing?

It is mounted in the forrest sitemap at
FORREST_INSTALL/src/core/context/sitemap.xmap search for
"project:sitemap" to see the mount.

> I'm hoping to put some code there to actually be sure that my
> sitemap.xmap gets included and it is actually a problem with my setup.

I use a very quick and easy "cheat" if I have concerns like this, I
temporarily make the XML in my project sitemap invalid and refresh a
page. If it is being loaded Cocoon will choke and tell you about the
error in the questionable file.

Ross


cheche at apache

Oct 18, 2004, 8:00 AM

Post #3 of 6 (11 views)
Permalink
Re: Debugging inclusion of custom project sitemap.xmap [In reply to]

Did you see my mail?

Ross Gardler wrote:
> Christian Roth wrote:
>
>> I'm suspecting my project's custom sitemap.xmap to not be included in
>> Cocoon's sitemap processing (I do not get results from views defined in
>> it, and DTD pre-processing with my XSLTs as described in "adding a new
>> content type" does not work at all).
>
>
> If you called it sitemap.xmap and it is located in your
> src/documentation folder then it should be loaded, it is more likely an
> error in your sitemap.
>
>> Can anyone familiar with the forrest code and call structure please point
>> me to the file/location in the code where (1) the check for a custom
>> sitemap.xmap is located and (2) where it actually gets prepended/
>> included/mounted (nomenclature???) within the embedded Cocoon processing?
>
>
> It is mounted in the forrest sitemap at
> FORREST_INSTALL/src/core/context/sitemap.xmap search for
> "project:sitemap" to see the mount.
>
>> I'm hoping to put some code there to actually be sure that my
>> sitemap.xmap gets included and it is actually a problem with my setup.
>
>
> I use a very quick and easy "cheat" if I have concerns like this, I
> temporarily make the XML in my project sitemap invalid and refresh a
> page. If it is being loaded Cocoon will choke and tell you about the
> error in the questionable file.
>
> Ross


rgardler at apache

Oct 18, 2004, 8:06 AM

Post #4 of 6 (11 views)
Permalink
Re: Debugging inclusion of custom project sitemap.xmap [In reply to]

Juan Jose Pablos wrote:
> Did you see my mail?

Not sure who is being asked, but I didn't and I don't see one in the
archives in this thread - do we have a problem with mails going missing?

Ross

>
> Ross Gardler wrote:
>
>> Christian Roth wrote:
>>
>>> I'm suspecting my project's custom sitemap.xmap to not be included in
>>> Cocoon's sitemap processing (I do not get results from views defined in
>>> it, and DTD pre-processing with my XSLTs as described in "adding a new
>>> content type" does not work at all).
>>
>>
>>
>> If you called it sitemap.xmap and it is located in your
>> src/documentation folder then it should be loaded, it is more likely
>> an error in your sitemap.
>>
>>> Can anyone familiar with the forrest code and call structure please
>>> point
>>> me to the file/location in the code where (1) the check for a custom
>>> sitemap.xmap is located and (2) where it actually gets prepended/
>>> included/mounted (nomenclature???) within the embedded Cocoon
>>> processing?
>>
>>
>>
>> It is mounted in the forrest sitemap at
>> FORREST_INSTALL/src/core/context/sitemap.xmap search for
>> "project:sitemap" to see the mount.
>>
>>> I'm hoping to put some code there to actually be sure that my
>>> sitemap.xmap gets included and it is actually a problem with my setup.
>>
>>
>>
>> I use a very quick and easy "cheat" if I have concerns like this, I
>> temporarily make the XML in my project sitemap invalid and refresh a
>> page. If it is being loaded Cocoon will choke and tell you about the
>> error in the questionable file.
>>
>> Ross
>
>
>
>


roth at visualclick

Oct 18, 2004, 8:45 AM

Post #5 of 6 (11 views)
Permalink
Re: Debugging inclusion of custom project sitemap.xmap [In reply to]

Ross Gardler wrote:

>> I'm hoping to put some code there to actually be sure that my
>> sitemap.xmap gets included and it is actually a problem with my setup.
>
>I use a very quick and easy "cheat" if I have concerns like this, I
>temporarily make the XML in my project sitemap invalid and refresh a
>page. If it is being loaded Cocoon will choke and tell you about the
>error in the questionable file.

Thanks Ross, this trick helped in finding the problem. It turned out that
in my forrest.properties file, I only had set the project.sitemap-dir
property, but not the project.sitemap property (assuming that
'sitemap.xmap' was automatically appended). Adding the explicit path of
my sitemap.xmap using project.sitemap, it is now mounted.

Regards, Christian.


cheche at che-che

Oct 18, 2004, 8:50 AM

Post #6 of 6 (11 views)
Permalink
Re: Debugging inclusion of custom project sitemap.xmap [In reply to]

Ross Gardler wrote:
> Juan Jose Pablos wrote:
>
>> Did you see my mail?
>
>
> Not sure who is being asked, but I didn't and I don't see one in the
> archives in this thread - do we have a problem with mails going missing?
>
> Ross
>

I think that it must me, I have just switch to thunderbird, and this is
the result, mistakes.. :-)
sorry

Forrest user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.