You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2003/10/06 18:37:16 UTC
cvs commit: cocoon-lenya/src/webapp/lenya/pubs/default/content/authoring/tutorial index_en.xml
michi 2003/10/06 09:37:16
Modified: src/webapp/lenya/pubs/default/config/menus generic.xsp
src/webapp/lenya/pubs/default/content/authoring/tutorial
index_en.xml
Log:
xhtml doctype added
Revision Changes Path
1.34 +10 -0 cocoon-lenya/src/webapp/lenya/pubs/default/config/menus/generic.xsp
Index: generic.xsp
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/default/config/menus/generic.xsp,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- generic.xsp 6 Oct 2003 12:45:13 -0000 1.33
+++ generic.xsp 6 Oct 2003 16:37:16 -0000 1.34
@@ -17,6 +17,7 @@
String xmlSource = <input:get-attribute as="string" module="page-envelope" name="document-url"/>.replaceFirst(".html", replacementString);
String sourcesParameter = "sources=" + xmlSource;
String urisParameter = "uris=" + <input:get-attribute as="string" module="page-envelope" name="document-url"/>;
+ String docType = <input:get-attribute as="string" module="page-envelope" name="document-type"/>;
String documentId = <input:get-attribute module="page-envelope" as="string" name="context-prefix"/> + "/" + <input:get-attribute module="page-envelope" as="string" name="publication-id"/> + "/authoring" + <input:get-attribute module="page-envelope" as="string" name="document-id"/> + "_" + <input:get-attribute module="page-envelope" as="string" name="document-language"/>;
</xsp:logic>
@@ -40,10 +41,19 @@
</menu>
<menu label="Search" name="Edit">
+<xsp:logic>
+if (docType.equals("simple")) {
<block>
<item href="?lenya.step=open&doctype=simple" uc:usecase="edit" wf:event="edit">Edit with Forms</item>
<item><xsp:attribute name="href"><xsp:expr>documentId + "-bxeng.html"</xsp:expr></xsp:attribute>Edit with BXENG</item>
</block>
+}
+else if (docType.equals("xhtml")) {
+ <block>
+ <item href="?lenya.step=open&doctype=xhtml" uc:usecase="edit" wf:event="edit">Edit with Forms</item>
+ </block>
+}
+</xsp:logic>
<!--
<block>
<item href="?lenya.step=open" uc:usecase="midas" wf:event="edit">Edit with Midas</item>
1.4 +1 -1 cocoon-lenya/src/webapp/lenya/pubs/default/content/authoring/tutorial/index_en.xml
Index: index_en.xml
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/default/content/authoring/tutorial/index_en.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- index_en.xml 30 Jul 2003 13:51:12 -0000 1.3
+++ index_en.xml 6 Oct 2003 16:37:16 -0000 1.4
@@ -2,7 +2,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0" xhtml:dummy="FIXME:keepNamespace" dc:dummy="FIXME:keepNamespace" lenya:dummy="FIXME:keepNamespace">
<!-- the root element indicates the doctype -->
<lenya:meta>
<dc:title>DC Title</dc:title>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org