El jue, 09-03-2006 a las 10:00 +0100, Andreas Hartmann escribió: > Thorsten Scherler wrote: > > El mar, 07-03-2006 a las 18:13 +0100, Thorsten Scherler escribió: > >> El mar, 07-03-2006 a las 17:07 +0000, [EMAIL PROTECTED] escribió: > >>> Author: thorsten > >>> Date: Tue Mar 7 09:07:57 2006 > >>> New Revision: 383931 > >>> > >>> URL: http://svn.apache.org/viewcvs?rev=383931&view=rev > >>> Log: > >>> Enabling to download the opendocument for local editing. > >>> > >>> Modified: > >>> lenya/trunk/src/modules/opendocument/sitemap.xmap > >>> > >>> Modified: lenya/trunk/src/modules/opendocument/sitemap.xmap > >>> URL: > >>> http://svn.apache.org/viewcvs/lenya/trunk/src/modules/opendocument/sitemap.xmap?rev=383931&r1=383930&r2=383931&view=diff > >>> ============================================================================== > >>> --- lenya/trunk/src/modules/opendocument/sitemap.xmap (original) > >>> +++ lenya/trunk/src/modules/opendocument/sitemap.xmap Tue Mar 7 09:07:57 > >>> 2006 > >>> @@ -62,6 +62,9 @@ > >>> <map:transform > >>> src="fallback://lenya/modules/opendocument/xslt/opendocument2xhtml.xsl"/> > >>> <map:serialize type="xml"/> > >>> </map:match> > >>> + <map:match pattern="**.odt"> > >>> + <map:read > >>> src="context://lenya/pubs/{page-envelope:publication-id}/content/{page-envelope:area}{page-envelope:document-id}/index_{page-envelope:document-language}.odt"/> > >>> + </map:match> > >>> > >>> > >> ...before Andreas will point it out. ;) > >> > >> Yeah, I know that is the old problem, but IMO I should finish this first > >> implementation and then we can look how to get rid of the *very* sharp > >> corners. ;) > >> > >> Anyway one thing that I found out is that the **.odt are now not under > >> ac anymore! > >> > >> Somebody an idea why and how I can fix it? > > > > Another thing is that this actually does not work :( > > > > I just did a build clean and now I get 404 on *.odt. > > Could that be because the LanguageExistsAction uses the > DocumentIdToPathMapper, > which points to the wrong file?
I do not understand. I am not using the LanguageExistsAction in my match. > > > Yesterday I added the above to the default pub sitemap and everything is > > working as I expected. Doing the same today again, as well let me > > download the openDocument. > > > > Why does the match work in the default sitemap and not in the module > > sitemap? > > Actually that should make no difference. > Which file does it try to read? Well the same file as before but it does not match anymore when in the module sitemap. I have the suspicion that it is related to the global-sitemap.xmap where declare *.xml to look in the module and further **.* into the resources xmap. This way we never reach the sitemap for the match. salu2 -- Thorsten Scherler COO Spain Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http://lenya.apache.org [EMAIL PROTECTED] [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
