custom functoid width VALUE MAPPING FUNCTOID
Hi,
I want to create a custom functoid which is going to replace the VALUE MAPPING FUNCTOID
below is th xslt of a VALUE MAPPING FUNCTOID
=======================================
<xsl:if test=""true"='true'">
<xsl:variable name="var:v2" select="*[local-name()='Field2' and namespace-uri()='']/text()" />
- <Field2>
<xsl:value-of select="$var:v2" />
</Field2>
</xsl:if>
========================================
the xslt of my custom functoid looks like this
========================================
<xsl:variable name="var:v1" select="ScriptNS0:myfunction(string(*[local-name()='Field1' and namespace-uri()='']/text()))" />
- <Field1>
<xsl:value-of select="$var:v1" />
</Field1>
========================================
the problem is the field element is always created if i use a custom control
any ideas how i can fix this within the code of my custom control
thanx
jtf
btw putting the VALUE MAPPING FUNCTOID after my custom control is not an option
|