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 2004/08/02 02:25:50 UTC

cvs commit: cocoon-lenya/src/webapp/lenya/pubs/oscom/xslt/matrix body.xsl

michi       2004/08/01 17:25:50

  Modified:    src/webapp/lenya/pubs/oscom/content/authoring/matrix
                        lenya.xml
               src/webapp/lenya/pubs/oscom/lenya/xslt/formeditor cmfs.xsl
               src/webapp/lenya/pubs/oscom/xslt/matrix body.xsl
  Log:
  Demo element added
  
  Revision  Changes    Path
  1.14      +2 -1      cocoon-lenya/src/webapp/lenya/pubs/oscom/content/authoring/matrix/lenya.xml
  
  Index: lenya.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/oscom/content/authoring/matrix/lenya.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- lenya.xml	27 Jul 2004 16:33:13 -0000	1.13
  +++ lenya.xml	2 Aug 2004 00:25:50 -0000	1.14
  @@ -34,6 +34,7 @@
       <license_url>http://cocoon.apache.org/lenya/project/license.html</license_url>
     </license>
     <programming-language>Java</programming-language>
  +  <demo href="http://www.lenya.org"/>
     <related-info>
       <info-item>
         <title>OSDIR.com</title>
  
  
  
  1.15      +22 -1     cocoon-lenya/src/webapp/lenya/pubs/oscom/lenya/xslt/formeditor/cmfs.xsl
  
  Index: cmfs.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/oscom/lenya/xslt/formeditor/cmfs.xsl,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- cmfs.xsl	8 May 2004 09:02:45 -0000	1.14
  +++ cmfs.xsl	2 Aug 2004 00:25:50 -0000	1.15
  @@ -70,6 +70,15 @@
   <xsl:apply-templates select="programming-language"/>
   
   
  +
  +<xsl:if test="not(demo)">
  +<node name="Demo">
  +  <action><insert name="&lt;xupdate:insert-after select=&quot;/system/license&quot;&gt;&lt;xupdate:element name=&quot;demo&quot;&gt;&lt;xupdate:attribute name=&quot;href&quot;&gt;http://demo.lenya.org&lt;/xupdate:attribute&gt;&lt;/xupdate:element&gt;&lt;/xupdate:insert-after&gt;"/></action>
  +</node>
  +</xsl:if>
  +<xsl:apply-templates select="demo"/>
  +
  +
   <xsl:if test="not(related-info)">
   <node name="Related Information">
     <action><insert name="&lt;xupdate:insert-after select=&quot;/system/system_name&quot;&gt;&lt;xupdate:element name=&quot;related-info&quot;&gt;&lt;info-item&gt;&lt;title&gt;New Title&lt;/title&gt;&lt;uri&gt;http://&lt;/uri&gt;&lt;/info-item&gt;&lt;/xupdate:element&gt;&lt;/xupdate:insert-after&gt;"/></action>
  @@ -147,6 +156,18 @@
     <content><input type="text" name="&lt;xupdate:update select=&quot;/system/programming-language[@tagID='{@tagID}']&quot;&gt;" size="40"><xsl:attribute name="value"><xsl:value-of select="." /></xsl:attribute></input></content>
   </node>
   </xsl:template>
  +
  +
  +
  +<xsl:template match="demo">
  +<node name="Demo" select="/system/demo[@tagID='{@tagID}']/@href">
  +  <content>
  +    <input type="text" name="&lt;xupdate:update select=&quot;/system/demo[@tagID='{@tagID}']/@href&quot;&gt;" size="40"><xsl:attribute name="value"><xsl:value-of select="@href" /></xsl:attribute></input>
  +  </content>
  +</node>
  +</xsl:template>
  +
  +
   
   <xsl:template match="related-info">
   <node name="Related Information">
  
  
  
  1.17      +6 -1      cocoon-lenya/src/webapp/lenya/pubs/oscom/xslt/matrix/body.xsl
  
  Index: body.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/oscom/xslt/matrix/body.xsl,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- body.xsl	8 May 2004 09:25:38 -0000	1.16
  +++ body.xsl	2 Aug 2004 00:25:50 -0000	1.17
  @@ -59,6 +59,7 @@
      <li><b>Home:</b><xsl:text> </xsl:text><a href="{main_url}" target="_blank"><xsl:apply-templates select="main_url"/></a></li>
      <li><xsl:apply-templates select="license"/></li>
      <xsl:apply-templates select="programming-language"/>
  +   <xsl:apply-templates select="demo"/>
    </ul>
    <xsl:apply-templates select="related-info" />
    <xsl:apply-templates select="features" />
  @@ -71,6 +72,10 @@
   
   <xsl:template match="programming-language">
    <li><b>Programming Language:</b><xsl:text> </xsl:text><xsl:value-of select="."/></li>
  +</xsl:template>
  +
  +<xsl:template match="demo">
  + <li><b>Demo:</b><xsl:text> </xsl:text><a href="{@href}"><xsl:value-of select="@href"/></a></li>
   </xsl:template>
   
   <xsl:template match="description">
  
  
  

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