UK Counties list
This is an open discussion with 2 replies, filed under XSLT.
Search
Hello Nick,
I just found this utility and thought it would be a great addition for my current project.
Could you teach me how to use it with your 'form controls' utility? I have to say I'm bit lost with all this nodes inside a variable. I though I could do this, but it doesn't work:
<xsl:call-template name="form:select"> <xsl:with-param name="handle" select="'county'"/> <xsl:with-param name="options" select="$uk-counties/countries/country[@name='England']/county"/> <xsl:with-param name="class" select="'very_small_text'"/> </xsl:call-template>
Thanks in advance!
never mind! I just found it.
<xsl:call-template name="form:select"> <xsl:with-param name="handle" select="'county'"/> <xsl:with-param name="options" select="exsl:node-set($uk-counties)/countries/country[@name='England']/county"/> <xsl:with-param name="class" select="'very_small_text'"/> </xsl:call-template>
I've got to start using those xslt extensions..
Create an account or sign in to comment.
A new XSLT utility, “UK Counties list” is now available for download. Comments and feedback can be left here but if you discover any issues, please post it on the issue tracker.