cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@cocoon.apache.org
Subject [Cocoon Wiki] Updated: WyonaXopusEditor
Date Sat, 10 Jul 2004 00:56:44 GMT
   Date: 2004-07-09T17:56:44
   Editor: JoergHeinicke <joerg.heinicke@gmx.de>
   Wiki: Cocoon Wiki
   Page: WyonaXopusEditor
   URL: http://wiki.apache.org/cocoon/WyonaXopusEditor

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -106,7 +106,7 @@
             
             			<anchor id="req-01"/>
             			<p><em>Xopus (Request 1):</em></p>
-            			<source><![:CDATA[<requesttype="open"id="req_somepath/somedoc.xml_someid"><datatype="xml"id="somepath/somedoc.xml"></data></request>]]></source>
+            			<source><![CDATA[<requesttype="open"id="req_somepath/somedoc.xml_someid"><datatype="xml"id="somepath/somedoc.xml"></data></request>]]></source>
             			
 				<anchor id="rsp-01"/>
             			<p><em>Server (Response 1):</em></p>
@@ -114,7 +114,7 @@
             
             			<anchor id="req-02"/>
             			<p><em>Xopus (Request 2):</em></p>
-            			<source><![:CDATA[<requesttype="open"id="req_somepath/somestylesheet.xsl_somenewid"><datatype="xml"id="somepath/somestylesheet.xsl"></data></request>]]></source>
+            			<source><![CDATA[<requesttype="open"id="req_somepath/somestylesheet.xsl_somenewid"><datatype="xml"id="somepath/somestylesheet.xsl"></data></request>]]></source>
             
             			<anchor id="rsp-02"/>
             			<p><em>Server (Response 2):</em></p>
@@ -122,11 +122,11 @@
             
             			<anchor id="req-03"/>
             			<p><em>Xopus (Request 3):</em></p>
-            			<source><![:CDATA[<requesttype="open"id="req_someschema.xsd_someotherid"><datatype="xsd"id="someschema.xsd"></data></request>]]></source>
+            			<source><![CDATA[<requesttype="open"id="req_someschema.xsd_someotherid"><datatype="xsd"id="someschema.xsd"></data></request>]]></source>
             
             			<anchor id="rsp-03"/>
             			<p><em>Server (Response 3):</em></p>
-            			<source><![http://www.w3.org/xlink">]]><![:CDATA[del="closed"name="Meta"><grouporder="seq"><elementmaxOccurs="1"minOccurs="1"type="ErscheinungsDatum"/><elementmaxOccurs="1"minOccurs="1"type="ZeitungsRessort"/><elementmaxOccurs="1"minOccurs="1"type="OnlineRessort"/></group></ElementType>.........<em><!--Furtherdefinitionsskippedtoimprovereadability--></em>......</Schema></data></response>]]></source>
+            			<source><![http://www.w3.org/xlink">]]><![CDATA[del="closed"name="Meta"><grouporder="seq"><elementmaxOccurs="1"minOccurs="1"type="ErscheinungsDatum"/><elementmaxOccurs="1"minOccurs="1"type="ZeitungsRessort"/><elementmaxOccurs="1"minOccurs="1"type="OnlineRessort"/></group></ElementType>.........<em><!--Furtherdefinitionsskippedtoimprovereadability--></em>......</Schema></data></response>]]></source>
             
 	    			</section>
 	    
@@ -172,7 +172,7 @@
               			<section><title>Interface definition for the checkin file dialog</title>
             
             			<p><em>Request message (Xopus to Server)</em></p>
-            			<source><![:CDATA[<requesttype="checkin"id="req_<em>path/filename</em>_<em>id</em>"><datatype="xml"<em><!--Onlyxmlfileischeckedbackin--></em>id=<em>path/filename</em>><em>Contentoftheeditor(currentstateofpath/filename)</em></data></request>]]></source>
+            			<source><![CDATA[<requesttype="checkin"id="req_<em>path/filename</em>_<em>id</em>"><datatype="xml"<em><!--Onlyxmlfileischeckedbackin--></em>id=<em>path/filename</em>><em>Contentoftheeditor(currentstateofpath/filename)</em></data></request>]]></source>
             
             			<p><em>Response message (Server to Xopus)</em></p>
             			<source><![http://www.w3.org/xlink">]]></source>
@@ -187,7 +187,7 @@
             			Xopus and the server looks like the following example:</p>
             
             			<p><em>Xopus (Request):</em></p>
-            			<source><![:CDATA[<requesttype="checkin"id="req_2002/01/17/al/newzzCWKQDEV5-12.nzzoml_1014216332805"><datatype="xml"id="2002/01/17/al/newzzCWKQDEV5-12.nzzoml"><BerichtId="newzz-2002.01.17-al-newzzCWKQDEV5-12"><id>2002/01/17/al/newzzCWKQDEV5-12</id><Meta><ErscheinungsDatum><Jahr>2002</Jahr>----snip----</ErscheinungsDatum>----snip----</Meta><Content>----snip----</Content>----snip----</Bericht></data></request>]]></source>
+            			<source><![CDATA[<requesttype="checkin"id="req_2002/01/17/al/newzzCWKQDEV5-12.nzzoml_1014216332805"><datatype="xml"id="2002/01/17/al/newzzCWKQDEV5-12.nzzoml"><BerichtId="newzz-2002.01.17-al-newzzCWKQDEV5-12"><id>2002/01/17/al/newzzCWKQDEV5-12</id><Meta><!ErscheinungsDatum><Jahr>2002</Jahr>----snip----</!ErscheinungsDatum>----snip----</Meta><Content>----snip----</Content>----snip----</Bericht></data></request>]]></source>
             
             			<p><em>Server (Response):</em></p>
             			<source><![http://www.w3.org/xlink">]]></source>
@@ -203,7 +203,7 @@
             			<source><![http://www.w3.org/xlink">]]></source>
             			
 				<p>When we couldn't detemine the filename for request :</p>
-            			<source><![http://www.w3.org/xlink">]]><![:CDATA["1"><title>Aninternalerrorhasoccurred:</title><message>CaughtexceptionindispatchRequest():Unabletodeterminefilenameforrequest</message></error></response>]]></source>
+            			<source><![http://www.w3.org/xlink">]]><![CDATA["1"><title>Aninternalerrorhasoccurred:</title><message>CaughtexceptionindispatchRequest():Unabletodeterminefilenameforrequest</message></error></response>]]></source>
  
 				</section>
  
@@ -221,7 +221,7 @@
             
             
             			<p><em>Request message (Xopus to Server)</em></p>
-            			<source><![:CDATA[<requesttype="save"id="req_<em>path/filename</em>_<em>id</em>"><datatype="xml"<em><!--Onlyxmlfileissaved--></em>id=<em>path/filename</em>><em>Contentoftheeditor(currentstateofpath/filename)</em></data></request>]]></source>
+            			<source><![CDATA[<requesttype="save"id="req_<em>path/filename</em>_<em>id</em>"><datatype="xml"<em><!--Onlyxmlfileissaved--></em>id=<em>path/filename</em>><em>Contentoftheeditor(currentstateofpath/filename)</em></data></request>]]></source>
             
             			<p><em>Response message (Server to Xopus)</em></p>
             			<source><![http://www.w3.org/xlink">]]></source>
@@ -256,7 +256,7 @@
               			<section><title>Interface definition for the spellcheck file
dialog</title>
             
             			<p><em>Request message (Xopus to Server)</em></p>
-            			<source><![:CDATA[<requesttype="checkspelling"id="req_<em>path/filename</em>_<em>id</em>"><datatype="xml"id=<em>path/filename</em>><em>Contentoftheeditor(currentstateofpath/filename)</em></data></request>]]></source>
+            			<source><![CDATA[<requesttype="checkspelling"id="req_<em>path/filename</em>_<em>id</em>"><datatype="xml"id=<em>path/filename</em>><em>Contentoftheeditor(currentstateofpath/filename)</em></data></request>]]></source>
             
             			<p><em>Response message (Server to Xopus)</em></p>
             			<source><![http://www.w3.org/xlink">]]></source>
@@ -291,7 +291,7 @@
               		<section><title>Exception handling</title>
            
             		<p>When the request type is unknown, the response looks like:</p>
                                                  
-            		<source><![:CDATA[<responsestatus="error"]]><![http://www.w3.org/xlink">]]></source>
+            		<source><![CDATA[<responsestatus="error"]]><![http://www.w3.org/xlink">]]></source>
 
             		<p>When an other exception occurs, the response looks like:</p>
             		<source><![http://www.w3.org/xlink">]]></source>
@@ -381,7 +381,7 @@
                 Add the call to Xopus to the element of the page that you want to edit. The
easiest way to do this
             	is to enwrap the portion that you want to make editable in a <code>&lt;div
...&gt;...&lt;/div&gt;</code>
             	statement containing the specific attributes to call Xopus. For example:
-            	<code><![:CDATA[<divid_xopus="dept"xml_xopus="index.xml"xsl_xopus="Department/Edit/xopus.xsl"xsd_xopus="department.xsd"><spanclass="CONTALBLETITLE">Chairman</span><tableborder="1"cellspacing="0"cellpadding="2"><tr><td><aclass="CONTABLELINK"href="">Department</link></td><td><aclass="CONTABLELINK"href="mailto:{chairman/email}"><xsl:value-ofselect="chairman/name"/></link></td><td><aclass="CONTABLELINK"href="mailto:{chairman/email}"><xsl:value-ofselect="chairman/email"/></link></td></tr></table></div>]]></code>

+            	<code><![CDATA[<divid_xopus="dept"xml_xopus="index.xml"xsl_xopus="Department/Edit/xopus.xsl"xsd_xopus="department.xsd"><spanclass="CONTALBLETITLE">Chairman</span><tableborder="1"cellspacing="0"cellpadding="2"><tr><td><aclass="CONTABLELINK"href="">Department</link></td><td><aclass="CONTABLELINK"href="mailto:{chairman/email}"><xsl:value-ofselect="chairman/name"/></link></td><td><aclass="CONTABLELINK"href="mailto:{chairman/email}"><xsl:value-ofselect="chairman/email"/></link></td></tr></table></div>]]></code>

 The file paths must be relative to the "root paths" for each filetype, as defined in the

             <code>xopus.xmap</code> for the <code>xopushandler</code>.
Also, do not use template calls in this
             stylesheet, as Xopus does not seem to handle those well.
@@ -442,16 +442,16 @@
 </p>
 <p>
 HTML which tells the Browser to load Xopus and the required data (XML, XSLT, XSD):</p>
-<source><![:CDATA[<html><head><scriptlanguage="javascript"src="{$xopus_prefix}/xopus/xopus.js">;</script><scriptlanguage="javascript">xopus_consts.LENYA_CMS_URL="<xsl:value-ofselect="$context_pubprefix"/>/xopus/XopusInterface";</script>...</head><body>...</body></html>]]></source>
+<source><![CDATA[<html><head><scriptlanguage="javascript"src="{$xopus_prefix}/xopus/xopus.js">;</script><scriptlanguage="javascript">xopus_consts.LENYA_CMS_URL="<xsl:value-ofselect="$context_pubprefix"/>/xopus/!XopusInterface";</script>...</head><body>...</body></html>]]></source>
 <p>where for instance $xopus_prefix=/software and $context_pubprefix=/lenya/unipublic
 </p>
 <p>
 Sitemap Component:
 org.apache.lenya.cms.cocoon.acting.!XopusHandlerAction</p>
-<source><![:CDATA[<map:actionname="xopushandler"src="org.apache.lenya.cms.cocoon.acting.XopusHandlerAction"logger="sitemap.action.xopus-handler"><xmlhref="content/authoring"/><xslhref="stylesheets/publication"/><xsdhref="config/doctypes/schemas"/><temphref="temp"/></map:action>]]></source>
+<source><![CDATA[<map:actionname="xopushandler"src="org.apache.lenya.cms.cocoon.acting.!XopusHandlerAction"logger="sitemap.action.xopus-handler"><xmlhref="content/authoring"/><xslhref="stylesheets/publication"/><xsdhref="config/doctypes/schemas"/><temphref="temp"/></map:action>]]></source>
 <p>
 Sitemap Pipeline:</p>
-<source><![:CDATA[<map:pipeline><map:matchpattern="XopusInterface"><map:acttype="xopushandler"><map:generatesrc="{reqFilePath}"/><map:transformsrc="../../xslt/xopus/response.xsl"><map:parametername="reqId"value="{reqId}"/><map:parametername="reqType"value="{reqType}"/><map:parametername="reqFile"value="{reqFile}"/><map:parametername="fileType"value="{fileType}"/></map:transform><map:serializetype="xml"/></map:act><map:generatesrc="../../content/xopus/error.xml"/><map:serializetype="xml"/></map:match><!--Errorhandling--><map:handle-errors><map:transformsrc="context://stylesheets/system/error2html.xsl"/><map:serializestatus-code="500"/></map:handle-errors></map:pipeline>]]></source>
+<source><![CDATA[<map:pipeline><map:match pattern="!XopusInterface"><map:acttype="xopushandler"><map:generatesrc="{reqFilePath}"/><map:transformsrc="../../xslt/xopus/response.xsl"><map:parametername="reqId"value="{reqId}"/><map:parametername="reqType"value="{reqType}"/><map:parametername="reqFile"value="{reqFile}"/><map:parametername="fileType"value="{fileType}"/></map:transform><map:serializetype="xml"/></map:act><map:generatesrc="../../content/xopus/error.xml"/><map:serializetype="xml"/></map:match><!--Errorhandling--><map:handle-errors><map:transformsrc="context://stylesheets/system/error2html.xsl"/><map:serializestatus-code="500"/></map:handle-errors></map:pipeline>]]></source>
 <p>
 FIXME:
 org.apache.lenya.cms.cocoon.acting.!XopusHandlerAction: root.get!FirstChild() doesn't work
if the Client (Browser Editor) sends white space and line breaks between two elements. There's
no problem with Xopusection actually, but the problem occured with the Bitflux editor, although
it has been fixed in the case of the Bitflux editor. But it should be fixed nevertheless!

Mime
View raw message