On 12/14/05, Annie Dumont <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] a écrit : > >Try adding your img() function to: > >\build\lenya\webapp\lenya\resources\menu\menu.js > >It should work now. > It displays the code : > <div style="block:table-cell"><img src="test/Souris.jpg" width="410px" > border="0" height="462"/></div> > instead of the image ... > > I don't know if this help, but here is the head of the document > displayed in the authoring-tab : > <head> > <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> > <title> > Apache Lenya | > univ_reunion | > authoring | > /universite/test.html | > Université de la Réunion</title> > <script src="/lenya_univ/lenya/menu/menu.js" type="text/javascript">Â > </script> > <link href="/lenya_univ/lenya/css/menu.css" rel="stylesheet" type="text/css"> > <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> > <link href="/lenya_univ/univ_reunion/authoring/css/style.dynamic.css" > type="text/css" rel="stylesheet"> > <script type="text/javascript" > src="/lenya_univ/univ_reunion/authoring/js/general.dynamic.js">Â </script> > </head> > The img() fonction is in > "/lenya_univ/univ_reunion/authoring/js/general.dynamic.js" > Now there is a img() in /lenya_univ/lenya/menu/menu.js too.
1. menu2xslt.xsl is working correctly. The SCRIPT tag for general.dynamic.js is added to the HEAD. There is no bug. 2. The JS img() function should not escape the < > characters. In menu.js, change the < to < and the > to >. It should work properly. (This is still a hack, because it is not using the correct file.) 3. You are using a relative URL for the SCRIPT tag. It seems: /lenya_univ/univ_reunion/authoring/js/general.dynamic.js does not exist. Try that URL. It should be a "Not found" error. The proper fix is either make that URL point to the correct file, or use an absolute URL in the XSL: /lenya_univ/univ_reunion/live/js/general.dynamic.js If you use the absolute URL, you should dynamically insert the publication-id to ease maintenance if you change the name of the pub or make a copy. solprovider --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
