Update of /var/cvs/applications/editwizard/templates/data/xsl In directory james.mmbase.org:/tmp/cvs-serv14819/applications/editwizard/templates/data/xsl
Modified Files: 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.192 retrieving revision 1.193 diff -u -b -r1.192 -r1.193 --- wizard.xsl 13 Jan 2009 14:25:16 -0000 1.192 +++ wizard.xsl 11 Feb 2009 20:44:05 -0000 1.193 @@ -13,7 +13,7 @@ @author Nico Klasens @author Martijn Houtman @author Robin van Meteren - @version $Id: wizard.xsl,v 1.192 2009/01/13 14:25:16 michiel Exp $ + @version $Id: wizard.xsl,v 1.193 2009/02/11 20:44:05 nklasens Exp $ This xsl uses Xalan functionality to call java classes to format dates and call functions on nodes @@ -661,6 +661,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> @@ -1212,6 +1218,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="{$uploadpage}&popupid={$popupid}&di...@did}&wizard={/wizard/@instance}&maxsiz...@dtmaxsize}" onclick="return doStartUpload(this);"> + <xsl:call-template name="prompt_do_upload"/> + </a> + </xsl:template> + <xsl:template name="ftype-realposition"> <xsl:call-template name="realposition"/> </xsl:template> _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs