cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From step...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/webapp/samples/slide rdf2html4content.xsl rdf2html4locks.xsl rdf2html4permissions.xsl rdf2html4properties.xsl sitemap.xmap
Date Tue, 02 Jul 2002 23:42:39 GMT
stephan     2002/07/02 16:42:39

  Modified:    src/scratchpad/webapp/samples/slide rdf2html4properties.xsl
                        sitemap.xmap
  Added:       src/scratchpad/webapp/samples/slide rdf2html4content.xsl
                        rdf2html4locks.xsl rdf2html4permissions.xsl
  Log:
  New stylesheets added for properties, content, locks and permissions.
  
  Revision  Changes    Path
  1.2       +22 -9     xml-cocoon2/src/scratchpad/webapp/samples/slide/rdf2html4properties.xsl
  
  Index: rdf2html4properties.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/samples/slide/rdf2html4properties.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- rdf2html4properties.xsl	2 Jul 2002 16:54:25 -0000	1.1
  +++ rdf2html4properties.xsl	2 Jul 2002 23:42:39 -0000	1.2
  @@ -23,12 +23,25 @@
        <tr>
          <table bgcolor="#000000" border="0" cellspacing="2" cellpadding="2" align="center"
width="100%">
            <tr>
  -            <td width="90%" align="right" bgcolor="#0086b2"><i>orthogonal views:
</i></td>
  -            <td nowrap="nowrap" bgcolor="#ffffff"><a href="?cocoon-view=content"><i>content</i></a></td>
  -            <td nowrap="nowrap" bgcolor="#ffffff"><a href="?cocoon-view=pretty-content"><i>properties</i></a></td>
  -            <td nowrap="nowrap" bgcolor="#ffffff"><a href="?cocoon-view=links"><i>permissions</i></a></td>
  -            <td nowrap="nowrap" bgcolor="#ffffff"><a href="?cocoon-view=links"><i>locks</i></a></td>
  -          </tr>
  +            <td width="90%" align="left" bgcolor="#0086b2"><font size="+1" face="arial,helvetica,sanserif"
  +    color="#ffffff"><xsl:value-of select="rdf:RDF/rdf:Description[1]/@rdf:about"/></font></td>
  +            <td nowrap="nowrap" bgcolor="#ffffff"><a
  +    href="/cocoon/samples/slide/content/{substring-after(rdf:RDF/rdf:Description[1]/@rdf:about,'://')}">
  +             <i>content</i></a>
  +            </td>
  +            <td nowrap="nowrap" bgcolor="#ffffff"><a
  +    href="/cocoon/samples/slide/properties/{substring-after(rdf:RDF/rdf:Description[1]/@rdf:about,'://')}">
  +             <i>properties</i></a>
  +            </td>
  +            <td nowrap="nowrap" bgcolor="#ffffff"><a
  +    href="/cocoon/samples/slide/permissions/{substring-after(rdf:RDF/rdf:Description[1]/@rdf:about,'://')}">
  +             <i>permissions</i></a>
  +            </td>
  +            <td nowrap="nowrap" bgcolor="#ffffff"><a
  +    href="/cocoon/samples/slide/locks/{substring-after(rdf:RDF/rdf:Description[1]/@rdf:about,'://')}">
  +             <i>locks</i></a>
  +            </td>
  +         </tr>
          </table>
        </tr>
       </table>
  @@ -57,7 +70,7 @@
            <table bgcolor="#000000" border="0" cellspacing="2" cellpadding="2" align="center"
width="100%">
             <tr>
              <td bgcolor="#0086b2" width="100%" align="left">
  -            <font size="+1" face="arial,helvetica,sanserif" color="#ffffff"><xsl:value-of
select="@rdf:about"/></font>
  +            <font size="+1" face="arial,helvetica,sanserif" color="#ffffff">Navigation</font>
              </td>
             </tr>
             <tr>
  @@ -66,7 +79,7 @@
                <xsl:if test="source:parent">
                 <tr>
                  <td width="100%" bgcolor="#ffffff" align="left">
  -                <a href="/cocoon/samples/slide/browse/{substring-after(source:parent,'://')}">Back</a>
  +                <a href="/cocoon/samples/slide/content/{substring-after(source:parent,'://')}">Back</a>
                  </td>
                 </tr>
                </xsl:if>
  @@ -79,7 +92,7 @@
                 <tr>
                  <td width="100%" bgcolor="#ffffff" align="left">
                   <font size="+0" face="arial,helvetica,sanserif" color="#000000">
  -                 <a href="/cocoon/samples/slide/browse/{substring-after(@rdf:resource,'://')}"
  +                 <a href="/cocoon/samples/slide/content/{substring-after(@rdf:resource,'://')}"
                     ><xsl:value-of select="@rdf:resource"/></a>
                   </font>
                  </td>
  
  
  
  1.3       +48 -12    xml-cocoon2/src/scratchpad/webapp/samples/slide/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/samples/slide/sitemap.xmap,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- sitemap.xmap	2 Jul 2002 16:54:25 -0000	1.2
  +++ sitemap.xmap	2 Jul 2002 23:42:39 -0000	1.3
  @@ -113,7 +113,7 @@
     <map:pipeline>
   
      <map:match pattern="">
  -	  <map:redirect-to uri="browse/"/>
  +	  <map:redirect-to uri="content/"/>
   	 </map:match>
    
   <!--   <map:match pattern="login.html">
  @@ -146,23 +146,59 @@
       <map:act type="auth-protect">
        <map:parameter name="handler" value="slidehandler"/>-->
   
  -     <map:match pattern="browse/**">
  -      <map:act set="slide-actions">
  -       <map:parameter name="cocoon-source-principal" value="root"/>
  -      </map:act>
  -
  +		 <!-- =============  Source description ============= -->
  +     <map:match pattern="description/**">
         <map:generate type="sourcedescription" src="slide://{1}?cocoon-source-principal=root">
          <map:parameter name="repository" value="slide"/>
          <map:parameter name="namespace" value="myrepository"/>
          <map:parameter name="principal" value="root"/>
         </map:generate>
   
  -      <map:transform src="rdf2html4properties.xsl">
  -       <map:parameter name="use-request-parameters" value="true"/>
  -       <!--<map:parameter name="namespace" value="{1}"/>-->
  -      </map:transform>
  +      <map:serialize type="xml"/>
  +     </map:match>
  +
  +     <!-- ============= Source content ================== -->
  +     <map:match pattern="content/**">
  +      <map:act set="slide-actions">
  +       <map:parameter name="cocoon-source-principal" value="root"/>
  +      </map:act>
  +
  +      <map:generate src="cocoon:/description/{1}"/>
  +      <map:transform src="rdf2html4content.xsl"/>
  +      <map:serialize type="html"/>
  +     </map:match>
  +
  +     <!-- ============= Source properties =============== -->
  +     <map:match pattern="properties/**">
  +      <map:act set="slide-actions">
  +       <map:parameter name="cocoon-source-principal" value="root"/>
  +      </map:act>
  +
  +      <map:generate src="cocoon:/description/{1}"/>
  +      <map:transform src="rdf2html4properties.xsl"/>
  +      <map:serialize type="html"/>
  +     </map:match>
  +
  +     <!-- ============= Source permissions ============== -->
  +     <map:match pattern="permissions/**">
  +      <map:act set="slide-actions">
  +       <map:parameter name="cocoon-source-principal" value="root"/>
  +      </map:act>
  +
  +      <map:generate src="cocoon:/description/{1}"/>
  +      <map:transform src="rdf2html4permissions.xsl"/>
  +      <map:serialize type="html"/>
  +     </map:match>
  +
  +     <!-- ============= Source locks ==================== -->
  +     <map:match pattern="locks/**">
  +      <map:act set="slide-actions">
  +       <map:parameter name="cocoon-source-principal" value="root"/>
  +      </map:act>
   
  -      <map:serialize type="html" mime-type="text/html"/>
  +      <map:generate src="cocoon:/description/{1}"/>
  +      <map:transform src="rdf2html4locks.xsl"/>
  +      <map:serialize type="html"/>
        </map:match>
   
        <map:match pattern="view/**">
  @@ -173,7 +209,7 @@
      </map:match>-->
   
      <map:handle-errors>
  -    <map:transform src="context://stylesheets/system/error2html.xsl"/>
  +    <map:transform src="context://samples/stylesheets/system/error2html.xsl"/>
       <map:serialize status-code="500"/>
      </map:handle-errors>
   			
  
  
  
  1.1                  xml-cocoon2/src/scratchpad/webapp/samples/slide/rdf2html4content.xsl
  
  Index: rdf2html4content.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet version="1.0"
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
                  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                  xmlns:source="http://xml.apache.org/cocoon/source/1.0"
                  xmlns:dav="DAV:">
  
   <xsl:output indent="yes"/>
  
   <xsl:template match="/">
    <html>
     <head>
      <title>Apache Cocoon @version@</title>
      <link rel="SHORTCUT ICON" href="favicon.ico"/>
     </head>
     <body bgcolor="#ffffff" link="#0086b2" vlink="#00698c" alink="#743e75">
      <table border="0" cellspacing="2" cellpadding="2" align="center" width="100%">
       <tr>
        <td width="*"><font face="arial,helvetica,sanserif" color="#000000">The
Apache Software Foundation is proud to present...</font></td>
        <td width="40%" align="center"><img border="0" src="/cocoon/samples/images/cocoon.gif"/></td>
        <td width="30%" align="center"><font face="arial,helvetica,sanserif" color="#000000"><b>version
@version@</b></font></td>
       </tr>
       <tr>
         <table bgcolor="#000000" border="0" cellspacing="2" cellpadding="2" align="center"
width="100%">
           <tr>
              <td width="90%" align="left" bgcolor="#0086b2"><font size="+1" face="arial,helvetica,sanserif"
      color="#ffffff"><xsl:value-of select="rdf:RDF/rdf:Description[1]/@rdf:about"/></font></td>
              <td nowrap="nowrap" bgcolor="#ffffff"><a
      href="/cocoon/samples/slide/content/{substring-after(rdf:RDF/rdf:Description[1]/@rdf:about,'://')}">
               <i>content</i></a>
              </td>
              <td nowrap="nowrap" bgcolor="#ffffff"><a
      href="/cocoon/samples/slide/properties/{substring-after(rdf:RDF/rdf:Description[1]/@rdf:about,'://')}">
               <i>properties</i></a>
              </td>
              <td nowrap="nowrap" bgcolor="#ffffff"><a
      href="/cocoon/samples/slide/permissions/{substring-after(rdf:RDF/rdf:Description[1]/@rdf:about,'://')}">
               <i>permissions</i></a>
              </td>
              <td nowrap="nowrap" bgcolor="#ffffff"><a
      href="/cocoon/samples/slide/locks/{substring-after(rdf:RDF/rdf:Description[1]/@rdf:about,'://')}">
               <i>locks</i></a>
              </td>
            </tr>
         </table>
       </tr>
      </table>
  
      <xsl:apply-templates select="rdf:RDF/rdf:Description[1]"/>
  
      <p align="center">
       <font size="-1">
        Copyright &#169; @year@ <a href="http://www.apache.org/">The Apache Software
Foundation</a>.<br/>
        All rights reserved.
       </font>
      </p>
     </body>
    </html>
   </xsl:template>
  
   <xsl:template match="rdf:Description">
  
    <table width="100%">
     <tr>
      <td width="200" valign="top">
       <table border="0" bgcolor="#000000" cellpadding="0" cellspacing="0" width="97%">
        <tbody>
         <tr>
          <td>
           <table bgcolor="#000000" border="0" cellspacing="2" cellpadding="2" align="center"
width="100%">
            <tr>
             <td bgcolor="#0086b2" width="100%" align="left">
              <font size="+1" face="arial,helvetica,sanserif" color="#ffffff">Navigation</font>
             </td>
            </tr>
            <tr>
             <td width="100%" bgcolor="#ffffff" align="left">
              <table bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="2"  width="100%"
align="center">
               <xsl:if test="source:parent">
                <tr>
                 <td width="100%" bgcolor="#ffffff" align="left">
                  <a href="/cocoon/samples/slide/content/{substring-after(source:parent,'://')}">Back</a>
                 </td>
                </tr>
               </xsl:if>
               <tr>
                <td width="100%" bgcolor="#ffffff" align="left">
                 <br/>
                </td>
               </tr>
               <xsl:for-each select="source:children/rdf:Seq/rdf:li">
                <tr>
                 <td width="100%" bgcolor="#ffffff" align="left">
                  <font size="+0" face="arial,helvetica,sanserif" color="#000000">
                   <a href="/cocoon/samples/slide/content/{substring-after(@rdf:resource,'://')}"
                    ><xsl:value-of select="@rdf:resource"/></a>
                  </font>
                 </td>
                </tr>
               </xsl:for-each>
              </table>
             </td>
            </tr>
           </table>
  
          </td>
         </tr> 
        </tbody>
       </table>
  
       <br/>
      </td>
  
      <td valign="top">
       <table border="0" bgcolor="#000000" cellpadding="0" cellspacing="0" width="97%">
        <tbody>
         <tr>
          <td>
           <table bgcolor="#000000" border="0" cellspacing="2" cellpadding="2" align="center"
width="100%">
            <tr>
             <td bgcolor="#0086b2" width="100%" align="left">
              <font size="+1" face="arial,helvetica,sanserif" color="#ffffff">Content</font>
             </td>
            </tr>
            <tr>
             <td width="100%" bgcolor="#ffffff" align="left">
  
              <table width="100%" cellspacing="0" cellpadding="5" align="center">
               <font size="+0" face="arial,helvetica,sanserif" color="#000000">
                <tr>
                 <td align="left"><b>Child</b></td>
                 <td align="left"><b>Type</b></td>
                 <td align="left"><b>Size</b></td>
                 <td align="left"><b>Last Modified</b></td>
                 <td align="right"></td>
                </tr>
  
                <xsl:for-each select="source:children/rdf:Seq/rdf:li">
                 <tr>
                  <td align="left">&#160;&#160;
                   <a href="/cocoon/samples/slide/content/{substring-after(@rdf:resource,'://')}"
                    ><xsl:value-of select="@rdf:resource"/></a>
                  </td>
                  <xsl:variable name="location"><xsl:value-of select="@rdf:resource"/></xsl:variable>
                  <td align="left"></td>
                  <td align="left"><xsl:value-of
                    select="/rdf:RDF/rdf:Description[@rdf:about=$location]/dav:getcontentlength"/></td>
                  <td align="left"><xsl:value-of
                    select="/rdf:RDF/rdf:Description[@rdf:about=$location]/dav:etlastmodified"/></td>
                  <td align="right">
                   <form action="" method="post">
                   <input type="hidden" name="uri" value="{../../@rdf:about}"/>
                   <input type="submit" name="cocoon-action-deletenode" value="Delete"/>
                   </form>
                  </td>
                 </tr>
                </xsl:for-each>
      
                <tr>
                 <form method="post" enctype="multipart/form-data">
                  <input type="hidden" name="uri" value="{@rdf:about}"/>
                  <td align="left">
                   <input name="filename" type="text" size="25" maxlength="40"/>
                  </td>
                  <td align="left" colspan="3">
                   <input type="file" name="file" size="30" />
                  </td>
                  <td align="right">
                   <input type="submit" name="cocoon-action-upload" value="Upload File"
/>
                  </td>
                 </form>
                </tr>
               </font>
              </table>
             </td>
            </tr>
           </table>
  
          </td>
         </tr> 
        </tbody>
       </table>
  
       <br/>
      </td>
     </tr>
    </table>
  
   </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-cocoon2/src/scratchpad/webapp/samples/slide/rdf2html4locks.xsl
  
  Index: rdf2html4locks.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet version="1.0"
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
                  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                  xmlns:source="http://xml.apache.org/cocoon/source/1.0"
                  xmlns:dav="DAV:">
  
   <xsl:output indent="yes"/>
  
   <xsl:template match="/">
    <html>
     <head>
      <title>Apache Cocoon @version@</title>
      <link rel="SHORTCUT ICON" href="favicon.ico"/>
     </head>
     <body bgcolor="#ffffff" link="#0086b2" vlink="#00698c" alink="#743e75">
      <table border="0" cellspacing="2" cellpadding="2" align="center" width="100%">
       <tr>
        <td width="*"><font face="arial,helvetica,sanserif" color="#000000">The
Apache Software Foundation is proud to present...</font></td>
        <td width="40%" align="center"><img border="0" src="/cocoon/samples/images/cocoon.gif"/></td>
        <td width="30%" align="center"><font face="arial,helvetica,sanserif" color="#000000"><b>version
@version@</b></font></td>
       </tr>
       <tr>
         <table bgcolor="#000000" border="0" cellspacing="2" cellpadding="2" align="center"
width="100%">
           <tr>
              <td width="90%" align="left" bgcolor="#0086b2"><font size="+1" face="arial,helvetica,sanserif"
      color="#ffffff"><xsl:value-of select="rdf:RDF/rdf:Description[1]/@rdf:about"/></font></td>
              <td nowrap="nowrap" bgcolor="#ffffff"><a
      href="/cocoon/samples/slide/content/{substring-after(rdf:RDF/rdf:Description[1]/@rdf:about,'://')}">
               <i>content</i></a>
              </td>
              <td nowrap="nowrap" bgcolor="#ffffff"><a
      href="/cocoon/samples/slide/properties/{substring-after(rdf:RDF/rdf:Description[1]/@rdf:about,'://')}">
               <i>properties</i></a>
              </td>
              <td nowrap="nowrap" bgcolor="#ffffff"><a
      href="/cocoon/samples/slide/permissions/{substring-after(rdf:RDF/rdf:Description[1]/@rdf:about,'://')}">
               <i>permissions</i></a>
              </td>
              <td nowrap="nowrap" bgcolor="#ffffff"><a
      href="/cocoon/samples/slide/locks/{substring-after(rdf:RDF/rdf:Description[1]/@rdf:about,'://')}">
               <i>locks</i></a>
              </td>
           </tr>
         </table>
       </tr>
      </table>
  
      <xsl:apply-templates select="rdf:RDF/rdf:Description[1]"/>
  
      <p align="center">
       <font size="-1">
        Copyright &#169; @year@ <a href="http://www.apache.org/">The Apache Software
Foundation</a>.<br/>
        All rights reserved.
       </font>
      </p>
     </body>
    </html>
   </xsl:template>
  
   <xsl:template match="rdf:Description">
  
    <table width="100%">
     <tr>
      <td width="200" valign="top">
       <table border="0" bgcolor="#000000" cellpadding="0" cellspacing="0" width="97%">
        <tbody>
         <tr>
          <td>
           <table bgcolor="#000000" border="0" cellspacing="2" cellpadding="2" align="center"
width="100%">
            <tr>
             <td bgcolor="#0086b2" width="100%" align="left">
              <font size="+1" face="arial,helvetica,sanserif" color="#ffffff">Navigation</font>
             </td>
            </tr>
            <tr>
             <td width="100%" bgcolor="#ffffff" align="left">
              <table bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="2"  width="100%"
align="center">
               <xsl:if test="source:parent">
                <tr>
                 <td width="100%" bgcolor="#ffffff" align="left">
                  <a href="/cocoon/samples/slide/content/{substring-after(source:parent,'://')}">Back</a>
                 </td>
                </tr>
               </xsl:if>
               <tr>
                <td width="100%" bgcolor="#ffffff" align="left">
                 <br/>
                </td>
               </tr>
               <xsl:for-each select="source:children/rdf:Seq/rdf:li">
                <tr>
                 <td width="100%" bgcolor="#ffffff" align="left">
                  <font size="+0" face="arial,helvetica,sanserif" color="#000000">
                   <a href="/cocoon/samples/slide/content/{substring-after(@rdf:resource,'://')}"
                    ><xsl:value-of select="@rdf:resource"/></a>
                  </font>
                 </td>
                </tr>
               </xsl:for-each>
              </table>
             </td>
            </tr>
           </table>
  
          </td>
         </tr> 
        </tbody>
       </table>
  
       <br/>
      </td>
  
      <td valign="top">
       <table border="0" bgcolor="#000000" cellpadding="0" cellspacing="0" width="97%">
        <tbody>
         <tr>
          <td>
           <table bgcolor="#000000" border="0" cellspacing="2" cellpadding="2" align="center"
width="100%">
            <tr>
             <td bgcolor="#0086b2" width="100%" align="left">
              <font size="+1" face="arial,helvetica,sanserif" color="#ffffff">Locks</font>
             </td>
            </tr>
            <tr>
             <td width="100%" bgcolor="#ffffff" align="left">
              <table bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="2"  width="100%"
align="center">
               <font size="+0" face="arial,helvetica,sanserif" color="#000000">
                <tr>
                 <td align="left"><b>Subject</b></td>
                 <td align="left"><b>Type</b></td>
                 <td align="left"><b>Expiration</b></td>
                 <td align="left"><b>Inheritable</b></td>
                 <td align="left"><b>Exclusive</b></td>
                 <td align="right"></td>
                </tr>
  
                <xsl:for-each select="source:locks/rdf:Seq/rdf:li/source:lock">
                 <tr bgcolor="#eeeeee">
                  <td align="left"><xsl:value-of select="@subject"/></td>
                  <td align="left"><xsl:value-of select="@type"/></td>
                  <td align="left"><xsl:value-of select="@expiration"/></td>
                  <td align="left"><xsl:value-of select="@inheritable"/></td>
                  <td align="left"><xsl:value-of select="@exclusive"/></td>
                  <td align="right">
                   <form action="" method="post">
                    <input type="hidden" name="uri" value="{../../../../@uri}"/>
                    <input type="hidden" name="locksubject" value="{@subject}"/>
  
                    <input type="submit" name="cocoon-action-deletelock" value="Delete"/>
                   </form>
                  </td>
                 </tr>
                </xsl:for-each>
  
                <tr>
                 <form action="" method="post">
                  <input type="hidden" name="uri" value="{@rdf:about}"/>
                  <td align="left">
                   <input name="locksubject" type="text" size="20" maxlength="40"/>
                  </td>
                  <td align="left">
                   <input name="locktype" type="text" size="15" maxlength="40"/>
                  </td>
                  <td align="left">
                   <input name="lockexpiration" type="text" size="15" maxlength="40"/>
                  </td>
                  <td align="left">
                   <select name="lockinheritable">
                    <option>true</option>
                    <option>false</option>
                   </select>
                  </td>
                  <td align="left">
                   <select name="lockexclusive">
                    <option>true</option>
                    <option>false</option>
                   </select>
                  </td>
                  <td align="right">
                   <input type="submit" name="cocoon-action-addlock" value="Add/Modify"/>
                  </td>
                 </form>
                </tr>
               </font>
              </table>
             </td>
            </tr>
           </table>
  
          </td>
         </tr> 
        </tbody>
       </table>
  
       <br/>
      </td>
     </tr>
    </table>
  
   </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-cocoon2/src/scratchpad/webapp/samples/slide/rdf2html4permissions.xsl
  
  Index: rdf2html4permissions.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet version="1.0"
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
                  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                  xmlns:source="http://xml.apache.org/cocoon/source/1.0"
                  xmlns:dav="DAV:">
  
   <xsl:output indent="yes"/>
  
   <xsl:template match="/">
    <html>
     <head>
      <title>Apache Cocoon @version@</title>
      <link rel="SHORTCUT ICON" href="favicon.ico"/>
     </head>
     <body bgcolor="#ffffff" link="#0086b2" vlink="#00698c" alink="#743e75">
      <table border="0" cellspacing="2" cellpadding="2" align="center" width="100%">
       <tr>
        <td width="*"><font face="arial,helvetica,sanserif" color="#000000">The
Apache Software Foundation is proud to present...</font></td>
        <td width="40%" align="center"><img border="0" src="/cocoon/samples/images/cocoon.gif"/></td>
        <td width="30%" align="center"><font face="arial,helvetica,sanserif" color="#000000"><b>version
@version@</b></font></td>
       </tr>
       <tr>
         <table bgcolor="#000000" border="0" cellspacing="2" cellpadding="2" align="center"
width="100%">
           <tr>
              <td width="90%" align="left" bgcolor="#0086b2"><font size="+1" face="arial,helvetica,sanserif"
      color="#ffffff"><xsl:value-of select="rdf:RDF/rdf:Description[1]/@rdf:about"/></font></td>
              <td nowrap="nowrap" bgcolor="#ffffff"><a
      href="/cocoon/samples/slide/content/{substring-after(rdf:RDF/rdf:Description[1]/@rdf:about,'://')}">
               <i>content</i></a>
              </td>
              <td nowrap="nowrap" bgcolor="#ffffff"><a
      href="/cocoon/samples/slide/properties/{substring-after(rdf:RDF/rdf:Description[1]/@rdf:about,'://')}">
               <i>properties</i></a>
              </td>
              <td nowrap="nowrap" bgcolor="#ffffff"><a
      href="/cocoon/samples/slide/permissions/{substring-after(rdf:RDF/rdf:Description[1]/@rdf:about,'://')}">
               <i>permissions</i></a>
              </td>
              <td nowrap="nowrap" bgcolor="#ffffff"><a
      href="/cocoon/samples/slide/locks/{substring-after(rdf:RDF/rdf:Description[1]/@rdf:about,'://')}">
               <i>locks</i></a>
              </td>
           </tr>
         </table>
       </tr>
      </table>
  
      <xsl:apply-templates select="rdf:RDF/rdf:Description[1]"/>
  
      <p align="center">
       <font size="-1">
        Copyright &#169; @year@ <a href="http://www.apache.org/">The Apache Software
Foundation</a>.<br/>
        All rights reserved.
       </font>
      </p>
     </body>
    </html>
   </xsl:template>
  
   <xsl:template match="rdf:Description">
  
    <table width="100%">
     <tr>
      <td width="200" valign="top">
       <table border="0" bgcolor="#000000" cellpadding="0" cellspacing="0" width="97%">
        <tbody>
         <tr>
          <td>
           <table bgcolor="#000000" border="0" cellspacing="2" cellpadding="2" align="center"
width="100%">
            <tr>
             <td bgcolor="#0086b2" width="100%" align="left">
              <font size="+1" face="arial,helvetica,sanserif" color="#ffffff">Navigation</font>
             </td>
            </tr>
            <tr>
             <td width="100%" bgcolor="#ffffff" align="left">
              <table bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="2"  width="100%"
align="center">
               <xsl:if test="source:parent">
                <tr>
                 <td width="100%" bgcolor="#ffffff" align="left">
                  <a href="/cocoon/samples/slide/content/{substring-after(source:parent,'://')}">Back</a>
                 </td>
                </tr>
               </xsl:if>
               <tr>
                <td width="100%" bgcolor="#ffffff" align="left">
                 <br/>
                </td>
               </tr>
               <xsl:for-each select="source:children/rdf:Seq/rdf:li">
                <tr>
                 <td width="100%" bgcolor="#ffffff" align="left">
                  <font size="+0" face="arial,helvetica,sanserif" color="#000000">
                   <a href="/cocoon/samples/slide/content/{substring-after(@rdf:resource,'://')}"
                    ><xsl:value-of select="@rdf:resource"/></a>
                  </font>
                 </td>
                </tr>
               </xsl:for-each>
              </table>
             </td>
            </tr>
           </table>
  
          </td>
         </tr> 
        </tbody>
       </table>
  
       <br/>
      </td>
  
      <td valign="top">
       <table border="0" bgcolor="#000000" cellpadding="0" cellspacing="0" width="97%">
        <tbody>
         <tr>
          <td>
           <table bgcolor="#000000" border="0" cellspacing="2" cellpadding="2" align="center"
width="100%">
            <tr>
             <td bgcolor="#0086b2" width="100%" align="left">
              <font size="+1" face="arial,helvetica,sanserif" color="#ffffff">User permissions</font>
             </td>
            </tr>
            <tr>
             <td width="100%" bgcolor="#ffffff" align="left">
              <table bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="2"  width="100%"
align="center">
               <font size="+0" face="arial,helvetica,sanserif" color="#000000">
                <tr>
                 <td align="left"><b>Principal</b></td>
                 <td align="left"><b>Privilege</b></td>
                 <td align="left"><b>Inheritable</b></td>
                 <td align="left"><b>Deny</b></td>
                 <td align="right"></td>
                </tr>
  
                <xsl:for-each select="source:permissions/rdf:Seq/rdf:li/source:permission[@principal]">
                 <tr>
                  <td align="left"><xsl:value-of select="@principal"/><xsl:value-of
select="@group"/></td>
                  <td align="left"><xsl:value-of select="@privilege"/></td>
                  <td align="left"><xsl:value-of select="@inheritable"/></td>
                  <td align="left"><xsl:value-of select="@negative"/></td>
                  <td align="right">
                   <form action="" method="post">
                    <input type="hidden" name="uri" value="{../../../../@uri}"/>
                    <input type="hidden" name="permissionprincipal" value="{@subject}"/>
                    <input type="hidden" name="permissionprivilege" value="{@action}"/>
  
                    <input type="submit" name="cocoon-action-deletepermission" value="Delete"/>
                   </form>
                  </td>
                 </tr>
                </xsl:for-each>
  
                <tr>
                 <form action="" method="post">
                  <input type="hidden" name="uri" value="{@rdf:about}"/>
                  <td align="left">
                   <select name="permissonprincipal">
                    <option>ALL</option>
                    <option>SELF</option>
                    <option>GUEST</option>
                   </select>
                  </td>
                  <td align="left">
                   <select name="permissonprivilege">
                    <option>all</option>
                    <option>read</option>
                    <option>write</option>
                    <option>read-acl</option>
                    <option>write-acl</option>
                    <option>read-source</option>
                    <option>create-source</option>
                    <option>remove-source</option>
                    <option>lock-source</option>
                    <option>read-locks</option>
                    <option>read-property</option>
                    <option>create-property</option>
                    <option>modify-property</option>
                    <option>remove-property</option>
                    <option>read-content</option>
                    <option>create-content</option>
                    <option>modify-content</option>
                    <option>remove-content</option>
                    <option>grant-permission</option>
                    <option>revoke-permission</option>
                   </select>
                  </td>
                  <td align="left">
                   <select name="permissoninheritable">
                    <option>true</option>
                    <option>false</option>
                   </select>
                  </td>
                  <td align="left">
                   <select name="permissondeny">
                    <option>true</option>
                    <option>false</option>
                   </select>
                  </td>
                  <td align="right">
                   <input type="submit" name="cocoon-action-addpermission" value="Add/Modify"/>
                  </td>
                 </form>
                </tr>
               </font>
              </table>
             </td>
            </tr>
           </table>
  
          </td>
         </tr> 
        </tbody>
       </table>
  
       <br/>
  
       <table border="0" bgcolor="#000000" cellpadding="0" cellspacing="0" width="97%">
        <tbody>
         <tr>
          <td>
           <table bgcolor="#000000" border="0" cellspacing="2" cellpadding="2" align="center"
width="100%">
            <tr>
             <td bgcolor="#0086b2" width="100%" align="left">
              <font size="+1" face="arial,helvetica,sanserif" color="#ffffff">Group
permissions</font>
             </td>
            </tr>
            <tr>
             <td width="100%" bgcolor="#ffffff" align="left">
              <table bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="2"  width="100%"
align="center">
               <tr>
                <td align="left"><b>Group</b></td>
                <td align="left"><b>Privilege</b></td>
                <td align="left"><b>Inheritable</b></td>
                <td align="left"><b>Deny</b></td>
                <td align="right"></td>
               </tr>
  
               <xsl:for-each select="source:permissions/rdf:Seq/rdf:li/source:permission[@group]">
                <tr>
                 <td align="left"><xsl:value-of select="@principal"/><xsl:value-of
select="@group"/></td>
                 <td align="left"><xsl:value-of select="@privilege"/></td>
                 <td align="left"><xsl:value-of select="@inheritable"/></td>
                 <td align="left"><xsl:value-of select="@negative"/></td>
                 <td align="right">
                  <form action="" method="post">
                   <input type="hidden" name="uri" value="{../../../../@uri}"/>
                   <input type="hidden" name="permissionprincipal" value="{@subject}"/>
                   <input type="hidden" name="permissionprivilege" value="{@action}"/>
  
                   <input type="submit" name="cocoon-action-deletepermission" value="Delete"/>
                  </form>
                 </td>
                </tr>
               </xsl:for-each>
  
               <tr>
                <form action="" method="post">
                 <input type="hidden" name="uri" value="{@rdf:about}"/>
                 <td align="left">
                  <select name="permissongroup">
                   <option>groupA</option>
                  </select>
                 </td>
                 <td align="left">
                  <select name="permissonprivilege">
                   <option>all</option>
                   <option>read</option>
                   <option>write</option>
                   <option>read-acl</option>
                   <option>write-acl</option>
                   <option>read-source</option>
                   <option>create-source</option>
                   <option>remove-source</option>
                   <option>lock-source</option>
                   <option>read-locks</option>
                   <option>read-property</option>
                   <option>create-property</option>
                   <option>modify-property</option>
                   <option>remove-property</option>
                   <option>read-content</option>
                   <option>create-content</option>
                   <option>modify-content</option>
                   <option>remove-content</option>
                   <option>grant-permission</option>
                   <option>revoke-permission</option>
                  </select>
                 </td>
                 <td align="left">
                  <select name="permissoninheritable">
                   <option>true</option>
                   <option>false</option>
                  </select>
                 </td>
                 <td align="left">
                  <select name="permissondeny">
                   <option>true</option>
                   <option>false</option>
                  </select>
                 </td>
                 <td align="right">
                  <input type="submit" name="cocoon-action-addpermission" value="Add/Modify"/>
                 </td>
                </form>
               </tr>
              </table>
             </td>
            </tr>
           </table>
          </td>
         </tr>
        </tbody>
       </table>
      </td>
     </tr>
    </table>
  
   </xsl:template>
  
  </xsl:stylesheet>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message