You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Nicolas Richeton <ni...@smile.fr> on 2004/05/07 18:39:52 UTC

RE : Lenya and Xopus

I restarted from scratch and it works. The problem was that I installed xopus in lenya/resources along with kupu instead of webapps/ROOT.
 
I'm now looking for a xsd file which matches the xhtml structure used by lenya and which works with xopus. I tryed to convert xhtml.rng to xsd files using trang but xopus doesn't find a definition for "I18n.attrib" and "Common.attrib".
 
Do you know where I can find it ?
 
 
 
 

	-------- Message d'origine-------- 
	De: Michael Wechner [mailto:michael.wechner@wyona.com] 
	Date: jeu. 06/05/2004 21:41 
	À: Lenya Users List 
	Cc: 
	Objet: Re: Lenya and Xopus
	
	

	Nicolas Richeton wrote:
	
	>Hi
	>
	>I'm trying to get Xopus 2.1.64 work with lenya 1.2RC3.
	>(JDK 1.4.1, Windows)
	> 
	>
	
	maybe 1.2RC3 has not been built with the Xopus property
	(build.properties) enabled.
	
	I think two files should be configured during the build process. Do a
	grep on src/targets for Xopus.
	
	HTH
	
	Michi
	
	>I used the small tutorial on lenya website (http://cocoon.apache.org/lenya/docs/components/editors/xopus.html).
	>When i select "Edit with xopus", xopus starts to load and fails with this error : Xopus could not start because: Xopus could not find a pipeline definition, or the pipeline definition was not well-formed XML
	>
	>Several parameters seem to be empty when calling lenya/xslt/authoring/edit/xopus-xhtml.xsl.
	>
	>As a result, the following lines
	>
	><param name="contextprefix"><xsl:value-of select="$contextPrefix"/></param>
	><param name="publicationid"><xsl:value-of select="$publicationId"/></param>
	><param name="completearea"><xsl:value-of select="$completeArea"/></param>
	>
	>
	>are replaced by invalid XML (tags are not closed)
	><param name="contextprefix">
	><param name="publicationid">
	><param name="completearea">
	>
	>I tryed to add some char to prevent the parameters to be empty.
	>ex : <param name="contextprefix"><xsl:value-of select="$contextPrefix"/>1</param>
	>
	>Now xopus loads further, but fails with another error :
	>An unknown error has occured:'undefined' a la valeur Null ou n'est pas un objet (yes, in french ;-) )
	>'undefined' is null or is not an object.
	>
	>Has anybody managed to run xopus with lenya ?
	>
	>Any ideas about these empty parameters  ?
	>xopus-xhtml.xsl is called from usecase.xmap :
	><map:transform src="xslt/authoring/edit/xopus-xhtml.xsl">
	>      <map:parameter name="contextPrefix" value="{request:contextPath}"/>
	>      <map:parameter name="publicationId" value="{page-envelope:publication-id}"/>
	>      <map:parameter name="completeArea" value="authoring"/>
	>      <map:parameter name="documentUrl" value="{page-envelope:document-url}"/>
	>      <map:parameter name="documentType" value="{request-param:doctype}"/>
	>      <map:parameter name="xopusContext" value="{xopus:context}"/>
	> </map:transform>
	>I don't understand why these parameters are empty, especially completeArea.
	>
	>Does a working example exist ?
	>
	>Thanks
	>
	>
	>
	>---------------------------------------------------------------------
	>To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
	>For additional commands, e-mail: lenya-user-help@cocoon.apache.org
	>
	>
	> 
	>
	
	
	
	---------------------------------------------------------------------
	To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
	For additional commands, e-mail: lenya-user-help@cocoon.apache.org
	
	


Re: RE : Lenya and Xopus

Posted by Michael Wechner <mi...@wyona.com>.
Nicolas Richeton wrote:

>I restarted from scratch and it works. The problem was that I installed xopus in lenya/resources along with kupu instead of webapps/ROOT.
> 
>I'm now looking for a xsd file which matches the xhtml structure used by lenya and which works with xopus. I tryed to convert xhtml.rng to xsd files using trang but xopus doesn't find a definition for "I18n.attrib" and "Common.attrib".
> 
>Do you know where I can find it ?
>  
>

You might want to ask Q42 ;-)

Michi

> 
> 
> 
> 
>
>	-------- Message d'origine-------- 
>	De: Michael Wechner [mailto:michael.wechner@wyona.com] 
>	Date: jeu. 06/05/2004 21:41 
>	À: Lenya Users List 
>	Cc: 
>	Objet: Re: Lenya and Xopus
>	
>	
>
>	Nicolas Richeton wrote:
>	
>	>Hi
>	>
>	>I'm trying to get Xopus 2.1.64 work with lenya 1.2RC3.
>	>(JDK 1.4.1, Windows)
>	> 
>	>
>	
>	maybe 1.2RC3 has not been built with the Xopus property
>	(build.properties) enabled.
>	
>	I think two files should be configured during the build process. Do a
>	grep on src/targets for Xopus.
>	
>	HTH
>	
>	Michi
>	
>	>I used the small tutorial on lenya website (http://cocoon.apache.org/lenya/docs/components/editors/xopus.html).
>	>When i select "Edit with xopus", xopus starts to load and fails with this error : Xopus could not start because: Xopus could not find a pipeline definition, or the pipeline definition was not well-formed XML
>	>
>	>Several parameters seem to be empty when calling lenya/xslt/authoring/edit/xopus-xhtml.xsl.
>	>
>	>As a result, the following lines
>	>
>	><param name="contextprefix"><xsl:value-of select="$contextPrefix"/></param>
>	><param name="publicationid"><xsl:value-of select="$publicationId"/></param>
>	><param name="completearea"><xsl:value-of select="$completeArea"/></param>
>	>
>	>
>	>are replaced by invalid XML (tags are not closed)
>	><param name="contextprefix">
>	><param name="publicationid">
>	><param name="completearea">
>	>
>	>I tryed to add some char to prevent the parameters to be empty.
>	>ex : <param name="contextprefix"><xsl:value-of select="$contextPrefix"/>1</param>
>	>
>	>Now xopus loads further, but fails with another error :
>	>An unknown error has occured:'undefined' a la valeur Null ou n'est pas un objet (yes, in french ;-) )
>	>'undefined' is null or is not an object.
>	>
>	>Has anybody managed to run xopus with lenya ?
>	>
>	>Any ideas about these empty parameters  ?
>	>xopus-xhtml.xsl is called from usecase.xmap :
>	><map:transform src="xslt/authoring/edit/xopus-xhtml.xsl">
>	>      <map:parameter name="contextPrefix" value="{request:contextPath}"/>
>	>      <map:parameter name="publicationId" value="{page-envelope:publication-id}"/>
>	>      <map:parameter name="completeArea" value="authoring"/>
>	>      <map:parameter name="documentUrl" value="{page-envelope:document-url}"/>
>	>      <map:parameter name="documentType" value="{request-param:doctype}"/>
>	>      <map:parameter name="xopusContext" value="{xopus:context}"/>
>	> </map:transform>
>	>I don't understand why these parameters are empty, especially completeArea.
>	>
>	>Does a working example exist ?
>	>
>	>Thanks
>	>
>	>
>	>
>	>---------------------------------------------------------------------
>	>To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
>	>For additional commands, e-mail: lenya-user-help@cocoon.apache.org
>	>
>	>
>	> 
>	>
>	
>	
>	
>	---------------------------------------------------------------------
>	To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
>	For additional commands, e-mail: lenya-user-help@cocoon.apache.org
>	
>	
>
>  
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: lenya-user-help@cocoon.apache.org
>


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


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