Update of /var/cvs/applications/editwizard/templates/data/xsl
In directory
james.mmbase.org:/tmp/cvs-serv14846/applications/editwizard/templates/data/xsl
Modified Files:
Tag: MMBase-1_8
wizard.xsl
Log Message:
ftype for imagedata and filedata
See also:
http://cvs.mmbase.org/viewcvs/applications/editwizard/templates/data/xsl
Index: wizard.xsl
===================================================================
RCS file: /var/cvs/applications/editwizard/templates/data/xsl/wizard.xsl,v
retrieving revision 1.160.2.21
retrieving revision 1.160.2.22
diff -u -b -r1.160.2.21 -r1.160.2.22
--- wizard.xsl 13 Jan 2009 14:27:38 -0000 1.160.2.21
+++ wizard.xsl 11 Feb 2009 20:44:12 -0000 1.160.2.22
@@ -13,7 +13,7 @@
@author Nico Klasens
@author Martijn Houtman
@author Robin van Meteren
- @version $Id: wizard.xsl,v 1.160.2.21 2009/01/13 14:27:38 michiel Exp $
+ @version $Id: wizard.xsl,v 1.160.2.22 2009/02/11 20:44:12 nklasens Exp $
This xsl uses Xalan functionality to call java classes
to format dates and call functions on nodes
@@ -125,7 +125,7 @@
'<xsl:value-of select="$day_thu"/>','<xsl:value-of
select="$day_fri"/>',
'<xsl:value-of select="$day_sat"/>');
</script>
- <script language="javascript" src="{$javascriptdir}datepicker.js">
+ <script type="text/javascript" src="{$javascriptdir}datepicker.js">
<xsl:comment>help IE</xsl:comment>
</script>
</xsl:template>
@@ -619,6 +619,12 @@
<xsl:when test="@ftype='file'">
<xsl:call-template name="ftype-file"/>
</xsl:when>
+ <xsl:when test="@ftype='imagedata'">
+ <xsl:call-template name="ftype-imagedata"/>
+ </xsl:when>
+ <xsl:when test="@ftype='filedata'">
+ <xsl:call-template name="ftype-filedata"/>
+ </xsl:when>
<xsl:when test="@ftype='radio'">
<xsl:call-template name="ftype-radio"/>
</xsl:when>
@@ -1096,6 +1102,22 @@
</xsl:choose>
</xsl:template>
+ <xsl:template name="ftype-imagedata">
+ <span class="readonly">
+ <img src="{node:saxonFunction($cloud, string(@number),
concat('servletpath(', $cloudkey, ',cache(', $imagesize,
'))'))}" hspace="0" vspace="0" border="0"/>
+ <br/>
+ <a href="{node:saxonFunction($cloud, string(@number),
concat('servletpath(', $cloudkey,')'))}" target="_new">
+ <xsl:call-template name="prompt_image_full" />
+ </a>
+ </span>
+ </xsl:template>
+
+ <xsl:template name="ftype-filedata">
+ <a href="{node:saxonFunction($cloud, string(@number),
concat('servletpath(', $cloudkey, ',number)'))}">
+ <xsl:call-template name="prompt_do_download"/>
+ </a>
+ </xsl:template>
+
<xsl:template name="ftype-realposition">
<xsl:call-template name="realposition"/>
</xsl:template>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs