You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Jann Forrer <ja...@id.unizh.ch> on 2005/01/18 17:50:15 UTC

lenya-1.2.1 error in lenya/lenya/xslt/authoring/asset.xsl

Hi

Note that there is an error in lenya/lenya/xslt/authoring/asset.xsl or
better in the usecase.xmap. The  parameter contextprefix in asset.xsl is
empty because it is not definied in the usecase.xmap.
This error will not shown up as long as you deploy your lenya in the ROOT context.

This bug is reported in the lenya Bugzilla 33035 (it is marked
as invalid!). Probably it is already fixed. Nevertheless, here is a patch
for that Bug. If necessary i can reopen the bug 33035 and add the patch.

--- /home/wyona/cms/src/lenya-1.2.1/src/webapp/lenya/usecase.xmap
2005-01-07 15:57:18.000000000 +0100
+++ usecase.xmap        2005-01-18 17:27:04.000000000 +0100
@@ -437,6 +437,7 @@
             </map:select>
             <map:generate type="serverpages"
src="{fallback:content/info/assets.xsp}"/>
             <map:transform src="{fallback:xslt/authoring/asset.xsl}">
+              <map:parameter name="contextprefix"
value="{request:contextPath}"/>
               <map:parameter name="use-request-parameters" value="true"/>
             </map:transform>
             <map:call resource="style-cms-page"/>
@@ -454,6 +455,7 @@
             </map:act>
             <map:generate src="{fallback:content/info/assets.xsp}"
type="serverpages"/>
             <map:transform src="{fallback:xslt/authoring/asset.xsl}">
+              <map:parameter name="contextprefix"
value="{request:contextPath}"/>
               <map:parameter name="use-request-parameters" value="true"/>
               <map:parameter name="error" value="true"/>
             </map:transform>
@@ -488,6 +490,7 @@
             </map:act>
             <map:generate src="{fallback:content/info/assets.xsp}"
type="serverpages"/>
             <map:transform src="{fallback:xslt/authoring/asset.xsl}">
+              <map:parameter name="contextprefix"
value="{request:contextPath}"/>
               <map:parameter name="use-request-parameters" value="true"/>
               <map:parameter name="error" value="true"/>
             </map:transform>


Regrads Jann

---------------------------------------------------------------
Jann Forrer
Informatikdienste
Universität Zürich
Winterthurerstr. 190
CH-8057 Zuerich

oooO   mail:  jann.forrer@id.unizh.ch
(  )   phone: +41 1 63 56772
 \ (   fax:   +41 1 63 54505
  \_)  http://www.id.unizh.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: lenya-1.2.1 error in lenya/lenya/xslt/authoring/asset.xsl

Posted by Michael Wechner <mi...@wyona.com>.
Jann Forrer wrote:

>Hi
>
>Note that there is an error in lenya/lenya/xslt/authoring/asset.xsl or
>better in the usecase.xmap. The  parameter contextprefix in asset.xsl is
>empty because it is not definied in the usecase.xmap.
>This error will not shown up as long as you deploy your lenya in the ROOT context.
>  
>

thanks for the patch. Should be applied to 1.2.2-dev and 1.4-dev 
(whereas I had some problems connecting to svn.apache.org).

But why is the very first occurence of asset.xsl missing the parameter:

<map:parameter name="error" value="true"/>

?

I have added it, but commented it for the moment

Thanks

Michi

>This bug is reported in the lenya Bugzilla 33035 (it is marked
>as invalid!). Probably it is already fixed. Nevertheless, here is a patch
>for that Bug. If necessary i can reopen the bug 33035 and add the patch.
>
>--- /home/wyona/cms/src/lenya-1.2.1/src/webapp/lenya/usecase.xmap
>2005-01-07 15:57:18.000000000 +0100
>+++ usecase.xmap        2005-01-18 17:27:04.000000000 +0100
>@@ -437,6 +437,7 @@
>             </map:select>
>             <map:generate type="serverpages"
>src="{fallback:content/info/assets.xsp}"/>
>             <map:transform src="{fallback:xslt/authoring/asset.xsl}">
>+              <map:parameter name="contextprefix"
>value="{request:contextPath}"/>
>               <map:parameter name="use-request-parameters" value="true"/>
>             </map:transform>
>             <map:call resource="style-cms-page"/>
>@@ -454,6 +455,7 @@
>             </map:act>
>             <map:generate src="{fallback:content/info/assets.xsp}"
>type="serverpages"/>
>             <map:transform src="{fallback:xslt/authoring/asset.xsl}">
>+              <map:parameter name="contextprefix"
>value="{request:contextPath}"/>
>               <map:parameter name="use-request-parameters" value="true"/>
>               <map:parameter name="error" value="true"/>
>             </map:transform>
>@@ -488,6 +490,7 @@
>             </map:act>
>             <map:generate src="{fallback:content/info/assets.xsp}"
>type="serverpages"/>
>             <map:transform src="{fallback:xslt/authoring/asset.xsl}">
>+              <map:parameter name="contextprefix"
>value="{request:contextPath}"/>
>               <map:parameter name="use-request-parameters" value="true"/>
>               <map:parameter name="error" value="true"/>
>             </map:transform>
>
>
>Regrads Jann
>
>---------------------------------------------------------------
>Jann Forrer
>Informatikdienste
>Universität Zürich
>Winterthurerstr. 190
>CH-8057 Zuerich
>
>oooO   mail:  jann.forrer@id.unizh.ch
>(  )   phone: +41 1 63 56772
> \ (   fax:   +41 1 63 54505
>  \_)  http://www.id.unizh.ch
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>For additional commands, e-mail: user-help@lenya.apache.org
>
>
>  
>


-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner@wyona.com                        michi@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org