jeremy@apache.org wrote:
>jeremy 2003/11/18 05:16:34
>
> Modified: src/blocks/woody/samples/resources woody-field-styling.xsl
> Log:
> My sincere appologies, I committed the wrong project !!!!
> Undoing my changes .... (I HOPE!!!)
>
> Revision Changes Path
> 1.15 +0 -5 cocoon-2.1/src/blocks/woody/samples/resources/woody-field-styling.xsl
>
> Index: woody-field-styling.xsl
> ===================================================================
> RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/samples/resources/woody-field-styling.xsl,v
> retrieving revision 1.14
> retrieving revision 1.15
> diff -u -r1.14 -r1.15
> --- woody-field-styling.xsl 18 Nov 2003 13:13:04 -0000 1.14
> +++ woody-field-styling.xsl 18 Nov 2003 13:16:34 -0000 1.15
> @@ -75,11 +75,6 @@
> <xsl:if test="@required='true'">
> <span class="woody-field-required"> * </span>
> </xsl:if>
> - <xsl:apply-templates select="wi:help"/>
> - </xsl:template>
> -
> - <xsl:template match="wi:help">
> - <a href="#" style="color:orange; font-weight: bold" onclick="alert('{normalize-space(.)}');
return false;"> ? </a>
> </xsl:template>
>
> <xsl:template match="wi:validation-message">
>
You can try this for wi:help:
<xsl:if test="wi:help">
<span id="h{generate-id()}"
style="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;">
<div style="border-style: solid; border-width: 1px; margin: 1px;
padding: 5px;">
<xsl:apply-templates select="wi:help"/>
</div>
</span>
<script language="JavaScript">
var hWin<xsl:value-of select="generate-id()"/> = new
PopupWindow('h<xsl:value-of select="generate-id()"/>');
hWin<xsl:value-of select="generate-id()"/>.autoHide();
</script>
<a id="{generate-id()}" href="#"
onclick="hWin{generate-id()}.showPopup('{generate-id()}');return
false;"><img border="0" src="resources/help.png"/></a>
</xsl:if>
It will generate nice popup using same Calendar.js script, and this
popup will support html tags, not like this alert() window
Vadim
|