I'm having difficulty figuring out how to get this one working.
I have an xml file with the following structure:
<submenu match="/econdev/">
<item>
<text>Director Information</text>
<link>/econdev/about/director.cfm</link>
</item>
<item>
<text>Contact Us</text>
<link>/econdev/about/contact.cfm</link>
</item>
</submenu>
<submenu match="/econdev/about/">
<item>
<text>Director Information</text>
<link>/econdev/about/director.cfm</link>
</item>
<item>
<text>Contact Us</text>
<link>/econdev/about/contact.cfm</link>
</item>
</submenu>
I have it transformed with an XSL file as such: (snippet)
<xsl:if test="$curdirectory=submenu/@match">
<xsl:apply-templates select="submenu"/>
</xsl:if>
If $curdirectory matches correctly, the template is applied to both submenus even though only the first one matches?! How can I force it to only apply the template of the matching element?
Thanks sooooo much.
I have an xml file with the following structure:
<submenu match="/econdev/">
<item>
<text>Director Information</text>
<link>/econdev/about/director.cfm</link>
</item>
<item>
<text>Contact Us</text>
<link>/econdev/about/contact.cfm</link>
</item>
</submenu>
<submenu match="/econdev/about/">
<item>
<text>Director Information</text>
<link>/econdev/about/director.cfm</link>
</item>
<item>
<text>Contact Us</text>
<link>/econdev/about/contact.cfm</link>
</item>
</submenu>
I have it transformed with an XSL file as such: (snippet)
<xsl:if test="$curdirectory=submenu/@match">
<xsl:apply-templates select="submenu"/>
</xsl:if>
If $curdirectory matches correctly, the template is applied to both submenus even though only the first one matches?! How can I force it to only apply the template of the matching element?
Thanks sooooo much.