I have encountered a rather perplexing problem with the following chunk of code 
found in the _formelements.xsl in the cfide/scripts/xsl/ folder of CFMX 7:

<!-- <cfinput type="text|hidden|password|file" > -->
<xsl:template match="xf:input | xf:secret | xf:upload | xf:submit | xf:trigger">

 <xsl:variable name="bind" select="@bind"/>
 <xsl:variable name="id" select="@id"/>
 <xsl:variable name="validate" select="@validate"/>

 <xsl:element name="input">
  <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
  <xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
  <xsl:attribute name="class">cfInput <xsl:if  test="//form/xf:model/xf:[EMAIL 
PROTECTED] = $id]/@required = 
'true()'">cfRequiredElement</xsl:if></xsl:attribute> 
  <xsl:attribute name="value"><xsl:value-of 
select="//form/xf:model/xf:instance/cf:data/*[name() = 
$bind]/text()"/></xsl:attribute>
                        
  <xsl:for-each select="xf:extension/cf:attribute">
    <xsl:if test="@name != 'width' and @name != 'validate' and @name != 
'validation' ">
      <xsl:attribute name="[EMAIL PROTECTED]"><xsl:value-of 
select="text()"/></xsl:attribute>
    </xsl:if>
  </xsl:for-each>
                        
  <xsl:for-each select="//form/xf:model/xf:[EMAIL PROTECTED] = $bind]">
    <xsl:call-template name="onBlurValidation"/>
  </xsl:for-each>
 </xsl:element>
</xsl:template>

My problem specifcally relates to the following piece of the above code:

<xsl:attribute name="class">cfInput <xsl:if  test="//form/xf:model/xf:[EMAIL 
PROTECTED] = $id]/@required = 
'true()'">cfRequiredElement</xsl:if></xsl:attribute>

What I am trying to do is add this little piece of code:

<xf:if test="//form/xf:model/xf:[EMAIL PROTECTED] = 
$id]/@validate">cfRequiredElement</xsl:if>

Unfortunately, this doesn't seem to work and neither have many other variations 
that I've tried.  Any ideas?

Thanks in advance for the help.
--Anne

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231034
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to