AprilWeb
05-16-2010, 10:36 PM
Hi,
I want to display an item in a form. If it has a child named "checkbox", I will display it as checkbox. Otherwise as "list".
How do I test it has no child named "checkbox"?
<xsl:when test="syntax/string/*[@value] and syntax/[list ne 'checkbox']">
<object name="A">
<syntax>
<string>
<enumeration value="1"/>
<enumeration value="2"/>
</string>
</syntax>
</object>
<object name="A">
<syntax>
<checkbox> </checkbox>
<string>
<enumeration value="1"/>
<enumeration value="2"/>
</string>
</syntax>
</object>
Thanks,
April
I want to display an item in a form. If it has a child named "checkbox", I will display it as checkbox. Otherwise as "list".
How do I test it has no child named "checkbox"?
<xsl:when test="syntax/string/*[@value] and syntax/[list ne 'checkbox']">
<object name="A">
<syntax>
<string>
<enumeration value="1"/>
<enumeration value="2"/>
</string>
</syntax>
</object>
<object name="A">
<syntax>
<checkbox> </checkbox>
<string>
<enumeration value="1"/>
<enumeration value="2"/>
</string>
</syntax>
</object>
Thanks,
April