Show CatSearchForm.xsl syntax highlighted
<?xml version="1.0"?>
<xsl:stylesheet xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"><xsl:output method="xml" omit-xml-declaration="no" encoding="utf-8" indent="yes"/><xsl:param name="modelTitle"/><xsl:param name="modelId"/><xsl:param name="widgetId"/><xsl:param name="targetModelId"/><xsl:param name="targetModel"/><xsl:param name="lang">en</xsl:param><xsl:param name="webServiceUrl">http://devgeo.cciw.ca/cgi-bin/mapserv/owscat</xsl:param><xsl:param name="formName">owsCatSearch</xsl:param><xsl:param name="searchConfigDoc" select="document('searchConfig.xml')"/><xsl:param name="selectSize" select="1"/><xsl:param name="north">North</xsl:param><xsl:param name="south">South</xsl:param><xsl:param name="east">East</xsl:param><xsl:param name="west">West</xsl:param><xsl:template match="/"><div><form name="{$formName}" id="{$formName}" method="get"><input type="hidden" name="version" value="1.0.0"/><input type="hidden" name="service" value="WFS"/><input type="hidden" name="request" value="GetFeature"/><input type="hidden" name="typename" value="service_resources"/><input type="hidden" name="outputFormat" value="GML3"/><h3>Keywords</h3><input type="text" name="keywords"/><h3>Location</h3><xsl:call-template name="locations"><xsl:with-param name="locationsDoc" select="$searchConfigDoc"/></xsl:call-template><xsl:call-template name="aoiBox"/><h3>Service Type</h3><select name="serviceType"><option/><option>WMS</option><option>WFS</option></select><input class="button" type="reset"/><input class="button" type="submit"/></form></div></xsl:template><xsl:template name="locations"><xsl:param name="locationsDoc"/><DIV><select name="locations" onchange="config.objects.{$widgetId}.setLocation(this.options[this.selectedIndex].value);" size="{$selectSize}"><xsl:apply-templates select="$locationsDoc/searchConfig[@entryType='productCollection']/locations/location"/></select></DIV></xsl:template><xsl:template match="location"><xsl:param name="indent"/><xsl:variable name="bbox" select="translate(wens,' ',',')"/><option value="{$bbox}"><xsl:value-of select="$indent"/><xsl:value-of select="title[@lang=$lang]"/></option><xsl:apply-templates select="location"><xsl:with-param name="indent"><xsl:value-of select="$indent"/>Â Â </xsl:with-param></xsl:apply-templates></xsl:template><xsl:template name="rucs"><p>
or
<a class="button" onclick="config.objects.{$widgetId}.openRucWindow('placename' );return false;">Select by placename</a>
or
<a class="button" onclick="config.objects.{$widgetId}.openRucWindow('postalCode' );return false;">Select by postal code</a></p></xsl:template><xsl:template name="aoiBox"><p><table><tr><td align="left">or enter</td><td><xsl:value-of select="$north"/></td><td><xsl:value-of select="$south"/></td><td><xsl:value-of select="$east"/></td><td><xsl:value-of select="$west"/></td></tr><tr><td/><td><input name="northCoord" type="text" size="10" class="searchInput"/></td><td><input name="southCoord" type="text" size="10" class="searchInput"/></td><td><input name="eastCoord" type="text" size="10" class="searchInput"/></td><td><input name="westCoord" type="text" size="10" class="searchInput"/></td></tr></table></p></xsl:template><xsl:template name="ntsInput"><p>or enter NTS mapsheet index
<input name="ntsIndex" type="text" size="6" class="searchInput"/></p></xsl:template><xsl:template match="text()|@*"/></xsl:stylesheet>
See more files for this project here