Dev Team,
Can some one look into this? I have added a test case for this in C2.1 CVS.
  - Try http://localhost:8080/cocoon/welcome.source - THIS WORKS!!!
  - Try http://localhost:8080/cocoon/sub/welcome.source - THIS DOES NOT WORK!!!!
 
Thanks,
dims

PS: FYI, Am on a mini vacation till Aug 28th.

--- Stuart Roebuck <[EMAIL PROTECTED]> wrote:
> I've got a root sitemap containing the following simple matcher:
> 
> >       <!-- UTILITY FOR VIEWING SOURCE XML OR HTML -->
> >
> >       <map:match pattern="**.source">
> >           <map:generate src="cocoon://{1}" />
> >           <map:transform src="transform/general/serialize_xml.xslt" />
> >           <map:serialize />
> >       </map:match>
> 
> It simply takes any url that returns XML followed by ".source" and returns 
> it as an HTML representation. ( - my browser doesn't like displaying 
> straight XML)
> 
> However, this doesn't work for a url referring to a sub-sitemap, such as:
> 
>       cocoon://subsitemap/information.xml
> 
> *BUT*
> 
> It does work for this *incorrect* url:
> 
>       cocoon://subsitemap/subsitemap/information.xml
> 
> e.g.:
> 
>       http://localhost:8080/subsitemap/subsitemap/information.xml.source
> 
> 
> Stuart.
> 
> -------------------------------------------------------------------------
> Stuart Roebuck                                  [EMAIL PROTECTED]
> Lead Developer                               Java, XML, MacOS X, XP, etc.
> ADOLOS                                           <http://www.adolos.com/>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to