El mié, 22-03-2006 a las 15:49 +0100, Paloma Gomez escribió: > Hi all,
Hi Paloma, > First, I'd like to thank you all for your help. :-) > > I've tried a mix of Michi's and Thorsten's suggestions: > > Thorsten Scherler wrote: > >Hmm, I just did a change in the menus.xmap, can you try again after svn > >up on 1.4? > > Michael Werner wrote: > >try to use > > > >http://svn.wyona.com/repos/public/lenya/modules/opendocument/xslt > > > >anonymous:anonymous > > > >which is a slightly modified version of J. David Eisenberg's XSLT > > I've downloaded the xslt file from the link provided by Michi and > I've run svn update as Thorsten said. The problem is that after > updating the opendocument module doesn't work any more: I can't upload > odt files. When I fill in the form and click on the untranslated > button, the form clears and nothing else happens. The file is not > uploaded. Have you set (in lenya/local.build.properties) #------------------------------------------------------------------------------------ # Enable file uploads in Lenya # If you leave this set to false, asset and image upload will not work. # It is disabled by default for security reasons enable.uploads=true The opendocument upload code will not work if you do not enable the uploads. > > As Michi said the module is currently broken, I guess that's why it's > not working. No, I fixed that again last night and it should work fine again (otherwise you would not be able to choose to upload a odt). > If this is so, I think I'll wait for the opendocument > module to be fixed before I try it again. Anyway, I'd like to know if > copying this xslt file to > <my-pub>/lenya/modules/opendocument/xslt > should be enough. > well, I disagree with michi recommendation to just add it to the build (see my last mail about that), so you should add this to the src and then build as usual. > In case this helps, I include the first 20 lines (*after* the > namespace declarations :) ) of the xslt file provided by Michi: jeje, that is working ;) > [quote] > <xsl:output > method="xml" > indent="yes" > omit-xml-declaration="yes" > doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" > doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > encoding="UTF-8" > /> > <xsl:variable name="lineBreak"><xsl:text> > </xsl:text></xsl:variable> > > <xsl:key name="listTypes" match="text:list-style" use="@style:name"/> > > <xsl:template match="/office:document-content"> > > <div id="body"> > <xsl:apply-templates select="office:body/office:text"/> > </div> > > </xsl:template> > > <xsl:template match="office:automatic-styles"> > <style type="text/css"> > <xsl:apply-templates/> > </style> > </xsl:template> > [/quote] > > Regards, > > Paloma > > PS: Thorsten: Soy del sevilla. ;-) jeje. ;) > > -- > Paloma Gomez > University of Seville 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]