how to test if some charaters are contained in a node

wxdqz

New Member
Hi,
In my xml style sheet, I need to find if element1 contains one of the charaters within []{}? If I have those charateres, I need to adjust the row number of the textarea in another way. I have thought of using <xsl:if>, but I don't know the syntax.

<textarea readonly="readonly" name="name" rows="1" cols="30"
<xsl:attribute name="rows">
<xsl:value-of select="floor(string-length(element1) div 30) + 1"/>
</xsl:attribute>
<xsl:value-of select="element1"/>
</textarea>

Thank you for your help.


Sue
 
Top