Search

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.

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details