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="<xupdate:update select="/system/editor/name[@tagID='{name/@tagID}']">" 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="<xupdate:update select="/system/editor/email[@tagID='{email/@tagID}']">" 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="<xupdate:append select="/system/editor"><xupdate:element name="email">editor@apache.org</xupdate:element></xupdate:append>"/>
+ </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="<xupdate:remove select="/system/editor[@tagID='{@tagID}']/@homepage"/>"/>
+ </action>
+ <content>
+ <input type="text" name="<xupdate:update select="/system/editor[@tagID='{@tagID}']/@homepage">" 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="<xupdate:remove select="/system/editor/email[@tagID='{@tagID}']"/>"/>
+ </action>
+ <content>
+ <input type="text" name="<xupdate:update select="/system/editor/email[@tagID='{@tagID}']">" 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