Trying to set the default option that appears in a select control, all I get is errors or a blank page at the moment, so what obvious mistake am I making?
Code:
<!-- Fill in the Drop Down List from the XML Schema-->
<select>
<xsl:attribute name="name">ddlOrganisationCountry</xsl:attribute>
<xsl:for-each select="document('[URL unfurl="true"]http://localhost/xmlproject/bdefinitions.xsd')/xs:schema/xs:element[/URL][@name='country']//xs:enumeration">
<option value="{@value}">
<xsl:value-of select="@value"/>
</option>
</xsl:for-each>
<xsl:if '@value'="United Kingdom">
<xsl:attribute name="selected">United Kingdom</xsl:attribute>
</xsl:if>
</select>