You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Franck Omrane <fm...@alfadimag.com> on 2005/03/08 15:07:27 UTC

(correction) problem with kupu and lenya 1.2.2 ( war version and tomcat)

i forgot that you also have to change   xhtml2xhtml.xsl
<xsl:template name="object2img">
      <img border="0">
        <xsl:attribute name="src">
          <xsl:choose>
            <xsl:when test="not(starts-with(@data, '/'))">
                <!-- FMO  <xsl:value-of select="$nodeid"/>/<xsl:value-of 
select="@data"/>  <xsl:value-of select="$nodeid"/>/-->
          <xsl:value-of select="@data"/>
            </xsl:when>
            <xsl:otherwise>           
              <xsl:value-of select="@data"/>
            </xsl:otherwise>
          </xsl:choose>
        </xsl:attribute>


Franck Omrane wrote:

>
>
> hi,
>
> before starting here is my config :
>
> linux
> j2sdk1.4.2_05.
> tomcat 5.0.28
> war file of lenya 1.2.2
> + endorsed jars provided with lenya (xalan, xerces)
>
> simple reverse proxy  with apache 2  proxypass proxypassreverse
>
>
> i first noticed that the kupu image library didn't work even without 
> the reverse proxy.
>
>
> here are the changes i did ( i am  new to all this stuff, smartest 
> ways are welcome ) to make it work.
>
>
> pageassets2kupulibrary.xsl
> *jakarta-tomcat-5.0.28/webapps/lenya/lenya/resources/kupu/apache-lenya/lenya/pageassets2kupulibrary.xsl*
>
> the comment <!--    is the original value
>
> <xsl:template match="li:asset">
>   <xsl:if test="(contains(dc:source, '.jpg') or contains(dc:source, 
> '.gif') or contains(dc:source, '.png') or contains(dc:source, '.swf'))">
>     <xsl:variable name="resource-url">
>       <xsl:value-of select="concat($resource-path-url, dc:source)"/>
>    <!-- fmo    <xsl:value-of 
> select="concat(substring-after($resource-path-url, '/'), dc:source)"/> -->
>     </xsl:variable>
>
>
> *
> jakarta-tomcat-5.0.28/webapps/lenya/lenya/resources/kupu/apache-lenya/lenya/kupusave.xsl*
>
>    <object>
>         <xsl:attribute name="data">
>           <!-- strip the nodeid out again (it is not saved in the 
> object @data)  cetait le / au lieu de .com substring-after(@src, '/') -->
>   
>           <xsl:choose>
>             <xsl:when test="starts-with(@src, '/')"> 
>               <xsl:value-of select="substring-after(@src, 
> '/')"/>           
>             </xsl:when>
>             <xsl:otherwise>
>       <xsl:value-of select="@src"/>
>        
>             </xsl:otherwise>
>           </xsl:choose>
>     <!-- fmo
>           <xsl:choose>
>             <xsl:when test="starts-with(@src, '/')">
>               <xsl:value-of select="@src"/>             
>             </xsl:when>
>             <xsl:otherwise>
>               <xsl:value-of select="substring-after(@src, '/')"/>
>             </xsl:otherwise>
>           </xsl:choose>
>         -->  
>         </xsl:attribute>
>
> jakarta-tomcat-5.0.28/webapps/lenya/lenya/resources/kupu/apache-lenya/lenya/content2edit.xsl
>
>
>  <xsl:template name="object2img">
>       <img border="0">
>         <xsl:attribute name="src">
>           <xsl:choose>
>             <xsl:when test="not(starts-with(@data, '/'))">
>           <!--fmo    <xsl:value-of select="$nodeid"/>/<xsl:value-of 
> select="@data"/> -->
>           <xsl:value-of select="@data"/>
>             </xsl:when>
>             <xsl:otherwise>           
>
>
> jakarta-tomcat-5.0.28/webapps/lenya/lenya/usecases/kupu/usecase-kupu.xmap
>
>  <!-- We need to use the hole uri scheme i.e. http://servername:port/, 
> since IE xslt processor 
>                  throws an access violation upon loading of xslts from 
> the internet.
>              -->
>             
>            <!-- fmo <map:parameter name="import-stylesheet-url"
>               
> value="{request:scheme}://{request:serverName}:{request:serverPort}{page-envelope:context-prefix}/kupu/common/kupudrawers/drawer.xsl"/>
>               -->
>          <map:parameter name="import-stylesheet-url"
>               
> value="http://www.toto.com/lenya/kupu/common/kupudrawers/drawer.xsl"/>
>    
>
> this last modification is not clean because you cannot define multiple 
> publications with multiple  domain.
> any idea is welcome
>
>
> franck
>
>
>
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>For additional commands, e-mail: user-help@lenya.apache.org
>