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/05/08 01:41:59 UTC

cvs commit: cocoon-lenya/src/webapp/lenya/pubs/oscom/lenya/xslt/formeditor cmfs.xsl

michi       2004/05/07 16:41:59

  Modified:    src/webapp/lenya/pubs/oscom/lenya/xslt/formeditor cmfs.xsl
  Log:
  homepage added
  
  Revision  Changes    Path
  1.12      +40 -3     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.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- cmfs.xsl	13 Mar 2004 12:42:12 -0000	1.11
  +++ cmfs.xsl	7 May 2004 23:41:59 -0000	1.12
  @@ -84,10 +84,47 @@
     <content><input type="text" name="&lt;xupdate:update select=&quot;/system/editor/name[@tagID='{name/@tagID}']&quot;&gt;" size="40"><xsl:attribute name="value"><xsl:value-of select="name" /></xsl:attribute></input></content>
   </node>
   
  -<node name="Editor E-Mail" select="/system/editor/email[@tagID='{email/@tagID}']">
  -  <content><input type="text" name="&lt;xupdate:update select=&quot;/system/editor/email[@tagID='{email/@tagID}']&quot;&gt;" size="40"><xsl:attribute name="value"><xsl:value-of select="email" /></xsl:attribute></input></content>
  +<xsl:if test="not(email)">
  +<node name="Editor E-Mail">
  +  <action>
  +    <insert name="&lt;xupdate:append select=&quot;/system/editor&quot;&gt;&lt;xupdate:element name=&quot;email&quot;&gt;editor@apache.org&lt;/xupdate:element&gt;&lt;/xupdate:append&gt;"/>
  +  </action>
  +</node>
  +</xsl:if>
  +<xsl:apply-templates select="email"/>
  +
  +
  +<xsl:choose>
  +<xsl:when test="@homepage">
  +<node name="Editor Homepage" select="/system/editor[@tagID='{@tagID}']/@homepage">
  +  <action>
  +    <delete name="&lt;xupdate:remove select=&quot;/system/editor[@tagID='{@tagID}']/@homepage&quot;/&gt;"/>
  +  </action>
  +  <content>
  +    <input type="text" name="&lt;xupdate:update select=&quot;/system/editor[@tagID='{@tagID}']/@homepage&quot;&gt;" size="40"><xsl:attribute name="value"><xsl:value-of select="@homepage" /></xsl:attribute></input>
  +  </content>
  +</node>
  +</xsl:when>
  +<xsl:otherwise>
  +<!--
  +Append attribute
  +-->
  +</xsl:otherwise>
  +</xsl:choose>
  +</xsl:template>
  +
  +
  +<xsl:template match="email">
  +<node name="Editor E-Mail" select="/system/editor/email[@tagID='{@tagID}']">
  +  <action>
  +    <delete name="&lt;xupdate:remove select=&quot;/system/editor/email[@tagID='{@tagID}']&quot;/&gt;"/>
  +  </action>
  +  <content>
  +    <input type="text" name="&lt;xupdate:update select=&quot;/system/editor/email[@tagID='{@tagID}']&quot;&gt;" size="40"><xsl:attribute name="value"><xsl:value-of select="." /></xsl:attribute></input></content>
   </node>
   </xsl:template>
  +
  +
   
   <xsl:template match="programming-language">
   <node name="Programming Language" select="/system/programming-language[@tagID='{@tagID}']">
  
  
  

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