You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by jo...@apache.org on 2004/02/12 19:37:25 UTC

cvs commit: cocoon-2.1/src/blocks/xmldb/samples sitemap.xmap

joerg       2004/02/12 10:37:25

  Modified:    src/blocks/xmldb/samples sitemap.xmap
  Log:
  fixed sitemap mount sample
  
  Revision  Changes    Path
  1.8       +1 -1      cocoon-2.1/src/blocks/xmldb/samples/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/xmldb/samples/sitemap.xmap,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- sitemap.xmap	22 Jan 2004 03:42:12 -0000	1.7
  +++ sitemap.xmap	12 Feb 2004 18:37:25 -0000	1.8
  @@ -49,7 +49,7 @@
         </map:match>
   
         <map:match pattern="xmount/**">
  -        <map:mount uri-prefix="xmount" src="xmldb:xindice-embed:///db/cocoon/sitemap" check-reload="yes"/>
  +        <map:mount uri-prefix="xmount" src="xmldb:xindice-embed:///db/cocoon/sitemap.xmap" check-reload="yes"/>
         </map:match>
   
         <map:match pattern="populate">
  
  
  

Re: cvs commit: cocoon-2.1/src/blocks/xmldb/samples sitemap.xmap

Posted by Joerg Heinicke <jo...@gmx.de>.
On 12.02.2004 23:25, Vadim Gritsenko wrote:

>>>   fixed sitemap mount sample
>>
>> Mounting the sitemap is possible now, but not browsing it:
>> http://127.0.0.1:8888/samples/xmldb/browse/cocoon/sitemap.xmap.
>>
>> It's strange as it returns ResouceNotFoundException on the file 
>> system. Making the file name broken intentionally like "sitemapxmap" 
>> results in expected "Document 
>> xmldb:xindice-embed:///db/cocoon/sitemapxmap not found".
> 
> Well, reason is in the parent sitemap:
>   <!-- ========================= Utilities 
> ================================ -->
> 
>   <map:match pattern="**sitemap.xmap">
>     <map:generate src="{0}"/>
>     <map:serialize type="xml"/>
>   </map:match>

Ah, I see.

> Do you want to change the parent sitemap or rename sitemap.xmap file 
> back to sitemap in the db?

The problem was it did not work at all. The mounting and the browsing 
did not work, because the mount was on sitemap while the file was 
populated as sitemap.xmap. I fixed at least the mounting, but in a way 
the browsing is no longer fixable. I changed it now in that way, that 
the sitemap.xmap is populated as sitemap and can be mounted and browsed.

>> There is also a problem with the following "click flow":
>> welcome page (http://127.0.0.1:8888/samples/xmldb/welcome) >
>> "Mount DB" (http://127.0.0.1:8888/samples/xmldb/xmount/welcome) >
>> "From DB"  (http://127.0.0.1:8888/samples/xmldb/xmount/xwelcome) >
>> "Mount DB" (http://127.0.0.1:8888/samples/xmldb/xmount/xmount/ fails 
>> as it is now one level to deep)
> 
> Ok, I fixed navigation error.

An easy "fix" :)

Joerg

Re: cvs commit: cocoon-2.1/src/blocks/xmldb/samples sitemap.xmap

Posted by Vadim Gritsenko <va...@reverycodes.com>.
Joerg Heinicke wrote:

> On 12.02.2004 19:37, joerg@apache.org wrote:
>
>> joerg       2004/02/12 10:37:25
>>
>>   Modified:    src/blocks/xmldb/samples sitemap.xmap
>>   Log:
>>   fixed sitemap mount sample
>
>
> Mounting the sitemap is possible now, but not browsing it:
> http://127.0.0.1:8888/samples/xmldb/browse/cocoon/sitemap.xmap.
>
> It's strange as it returns ResouceNotFoundException on the file 
> system. Making the file name broken intentionally like "sitemapxmap" 
> results in expected "Document 
> xmldb:xindice-embed:///db/cocoon/sitemapxmap not found".


Well, reason is in the parent sitemap:
   <!-- ========================= Utilities 
================================ -->

   <map:match pattern="**sitemap.xmap">
     <map:generate src="{0}"/>
     <map:serialize type="xml"/>
   </map:match>

Do you want to change the parent sitemap or rename sitemap.xmap file 
back to sitemap in the db?


> There is also a problem with the following "click flow":
> welcome page (http://127.0.0.1:8888/samples/xmldb/welcome) >
> "Mount DB" (http://127.0.0.1:8888/samples/xmldb/xmount/welcome) >
> "From DB"  (http://127.0.0.1:8888/samples/xmldb/xmount/xwelcome) >
> "Mount DB" (http://127.0.0.1:8888/samples/xmldb/xmount/xmount/ fails 
> as it is now one level to deep)


Ok, I fixed navigation error.

Vadim



Re: cvs commit: cocoon-2.1/src/blocks/xmldb/samples sitemap.xmap

Posted by Joerg Heinicke <jo...@gmx.de>.
On 12.02.2004 19:37, joerg@apache.org wrote:

> joerg       2004/02/12 10:37:25
> 
>   Modified:    src/blocks/xmldb/samples sitemap.xmap
>   Log:
>   fixed sitemap mount sample

Mounting the sitemap is possible now, but not browsing it:
http://127.0.0.1:8888/samples/xmldb/browse/cocoon/sitemap.xmap.

It's strange as it returns ResouceNotFoundException on the file system. 
Making the file name broken intentionally like "sitemapxmap" results in 
expected "Document xmldb:xindice-embed:///db/cocoon/sitemapxmap not found".


There is also a problem with the following "click flow":
welcome page (http://127.0.0.1:8888/samples/xmldb/welcome) >
"Mount DB" (http://127.0.0.1:8888/samples/xmldb/xmount/welcome) >
"From DB"  (http://127.0.0.1:8888/samples/xmldb/xmount/xwelcome) >
"Mount DB" (http://127.0.0.1:8888/samples/xmldb/xmount/xmount/ fails as 
it is now one level to deep)

Vadim?

Joerg