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/03 00:17:13 UTC

cvs commit: cocoon-lenya/src/webapp/lenya/pubs/default/content/authoring/index index_en.xml

michi       2003/10/02 15:17:13

  Modified:    src/webapp/lenya/pubs/default/config/menus generic.xsp
               src/webapp/lenya/pubs/default/content/authoring/index
                        index_en.xml
  Added:       src/webapp/lenya/pubs/default/lenya/xslt/formeditor
                        simple.xsl
  Log:
  Form Editor added
  
  Revision  Changes    Path
  1.1                  cocoon-lenya/src/webapp/lenya/pubs/default/lenya/xslt/formeditor/simple.xsl
  
  Index: simple.xsl
  ===================================================================
  <?xml version="1.0" encoding="iso-8859-1"?>
  
  <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  >
  
  <xsl:import href="../../../../../xslt/authoring/edit/form.xsl"/>
  
  <xsl:template match="simple:simple-document" xmlns:simple="http://apache.org/cocoon/lenya/doctypes/simple-document/1.0" xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <tr>
    <td colspan="3">Dublin Core</td>
  </tr>
  <tr>
    <td>&#160;</td>
    <td>Title</td>
    <td><input type="text" name="&lt;xupdate:update select=&quot;/simple:simple-document/lenya:meta/dc:title[@tagID='{lenya:meta/dc:title/@tagID}']&quot;&gt;" size="40"><xsl:attribute name="value"><xsl:value-of select="lenya:meta/dc:title" /></xsl:attribute></input></td>
  </tr>
  <tr>
    <td>&#160;</td>
    <td>Description</td>
    <td><input type="text" name="&lt;xupdate:update select=&quot;/simple:simple-document/lenya:meta/dc:description[@tagID='{lenya:meta/dc:description/@tagID}']&quot;&gt;" size="40"><xsl:attribute name="value"><xsl:value-of select="lenya:meta/dc:description" /></xsl:attribute></input></td>
  </tr>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.30      +7 -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.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- generic.xsp	24 Sep 2003 17:34:36 -0000	1.29
  +++ generic.xsp	2 Oct 2003 22:17:13 -0000	1.30
  @@ -40,17 +40,24 @@
         
         <menu label="Search" name="Edit">
           <block>
  +          <item href="?lenya.step=open&amp;doctype=simple" uc:usecase="edit" wf:event="edit">Edit&#160;with&#160;Forms</item>
  +<!--
             <item href="?lenya.step=open" uc:usecase="midas" wf:event="edit">Edit&#160;with&#160;Midas</item>
             <item wf:event="edit"><xsp:attribute name="href"><xsp-request:get-context-path/>/authoring/xopus2<xsp:expr>xmlSource</xsp:expr>?documentid=<xsp:expr>xmlSource</xsp:expr></xsp:attribute>Edit&#160;with&#160;Xopus</item>
             <item wf:event="edit"><xsp:attribute name="href"><xsp-request:get-context-path/>/bitflux/index.html?url-xml=<xsp:expr>bitflux_prefix+xmlSource+"&amp;url-xslt="+bitflux_prefix+"/stylesheets/simple.xsl&amp;url-xsd="+bitflux_prefix+"/schemas/simple.xsd&amp;url-css="+bitflux_prefix+"/css/simple.css&amp;url-post="+bitflux_prefix+"/save"+xmlSource+"&amp;url-back="+<xsp-request:get-context-path/>+"/authoring"+<input:get-attribute as="string" module="page-envelope" name="document-url"/></xsp:expr></xsp:attribute>Edit with Bitflux</item>
  +-->
           </block>
         </menu>
         
         <menu label="Help" name="Tools">
  +<!--
           <block>
             <item><xsp:attribute name="href">../xopus<xsp:expr><input:get-attribute as="string" module="page-envelope" name="document-url"/>.replaceFirst("\\.html", ".xml")</xsp:expr></xsp:attribute>View&#160;XML</item>
             <item href="../xopus/simple.xsd">View&#160;Xopus&#160;XSD</item>
             <item href="../xopus/simple.xsl">View&#160;Xopus&#160;XSLT</item>
  +        </block>
  +-->
  +        <block>
             <item href="?lenya.usecase=view-logs&amp;lenya.step=overview">View Task Logs</item>
             <item href="?lenya.usecase=schedule&amp;lenya.step=showscreen">Scheduler</item>
             <item><xsp:attribute name="href">?lenya.usecase=rollback&amp;lenya.step=showscreen&amp;documentid=<xsp:expr>xmlSource</xsp:expr></xsp:attribute>Rollback</item>
  
  
  
  1.3       +1 -1      cocoon-lenya/src/webapp/lenya/pubs/default/content/authoring/index/index_en.xml
  
  Index: index_en.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/default/content/authoring/index/index_en.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- index_en.xml	30 Jul 2003 13:51:13 -0000	1.2
  +++ index_en.xml	2 Oct 2003 22:17:13 -0000	1.3
  @@ -1,5 +1,5 @@
   <?xml version="1.0" encoding="UTF-8"?>
  -<simple-document xmlns="http://apache.org/cocoon/lenya/doctypes/simple-document/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0">
  +<simple-document xmlns="http://apache.org/cocoon/lenya/doctypes/simple-document/1.0" xmlns:simple="http://apache.org/cocoon/lenya/doctypes/simple-document/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0" simple: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


Re: cvs commit: cocoon-lenya/src/webapp/lenya/pubs/default/content/authoring/index index_en.xml

Posted by Christian Egli <ch...@wyona.com>.
michi@apache.org writes:

> michi       2003/10/02 15:17:13
> 
>   Modified:    src/webapp/lenya/pubs/default/config/menus generic.xsp
>                src/webapp/lenya/pubs/default/content/authoring/index
>                         index_en.xml
>   Added:       src/webapp/lenya/pubs/default/lenya/xslt/formeditor
>                         simple.xsl
>   Log:
>   Form Editor added

Very nice! Thank you very much.

However :-(, I only seem to be able the dublin core data on the main
page. Should maybe the change you applied below applied to all the
pages?

>   Index: index_en.xml
>   ===================================================================
>   RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/default/content/authoring/index/index_en.xml,v
>   retrieving revision 1.2
>   retrieving revision 1.3
>   diff -u -r1.2 -r1.3
>   --- index_en.xml	30 Jul 2003 13:51:13 -0000	1.2
>   +++ index_en.xml	2 Oct 2003 22:17:13 -0000	1.3
>   @@ -1,5 +1,5 @@
>    <?xml version="1.0" encoding="UTF-8"?>
>   -<simple-document xmlns="http://apache.org/cocoon/lenya/doctypes/simple-document/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0">
>   +<simple-document xmlns="http://apache.org/cocoon/lenya/doctypes/simple-document/1.0" xmlns:simple="http://apache.org/cocoon/lenya/doctypes/simple-document/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0" simple:dummy="FIXME:keepNamespace" dc:dummy="FIXME:keepNamespace" lenya:dummy="FIXME:keepNamespace">
>        <!-- the root element indicates the doctype -->

Also, do we have to add this to the sample document as well?

-- 
Christian Egli       christian.egli@wyona.com   +41 1 272 9161
                     Wyona AG, Hardstrasse 219, CH-8005 Zurich
Open Source CMS      http://www.wyona.org http://www.wyona.com 



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