Code Search for Developers
 
 
  

CatSearchForm.xsl from ThinkCap Collaborative Knowledge Portal at Krugle


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

ThinkCap Collaborative Knowledge Portal

A portal to explore and edit the knowledge contained in a set of ontologies in intuitive ways. Presents a Dictionary view (a Google-like interface), a Thesaurus view (a graphical display with simplified relationships) and a full graphical Concept view.

Project homepage: http://sourceforge.net/projects/thinkcap
Programming language(s): Java,JavaScript,XML
License: other

  Abstract.xsl
  AoiBox2.js
  AoiBoxDHTML.js
  AoiBoxWZ.js
  AoiForm.js
  AoiForm.xsl
  Back.js
  Button.js
  Button.xsl
  ButtonBase.js
  CatSearchForm.js
  CatSearchForm.xsl
  CdnWatershedForm.xsl
  CollectionList.js
  CollectionList.xsl
  CursorTrack.js
  CursorTrack.xsl
  DeleteFeature.js
  DragPan.js
  EditButtonBase.js
  EditLine.js
  EditLine_1.js
  EditPoint.js
  EditPoint_1.js
  EditPolygon.js
  EventLog.xsl
  FeatureInfo.js
  FeatureInfo.xsl
  FeatureList.js
  FeatureList.xsl
  FilterAttributes.js
  FilterAttributes.xsl
  Forward.js
  GetFeatureInfo.js
  Gml2ScreenCoords.xsl
  GmlCooordinates2Coord.xsl
  GmlPointRenderer.js
  GmlRenderer.js
  GmlRenderer.xsl
  GmlRendererSVG.js
  GmlRendererSVG.xsl
  GmlRendererTest.js
  GmlRendererTest.xsl
  GmlRendererWKT.js
  GmlRendererWKT.xsl
  GmlRendererWZ.js
  GmlRendererWZ.xsl
  InsertFeature.js
  LayerControl.js
  LayerControl.xsl
  Legend.js
  Legend.xsl
  Loading.js
  Loading.xsl
  Loading2.js
  Locations.js
  Locations.xsl
  MapContainerBase.js
  MapImage.js
  MapImage.xsl
  MapPane.js
  MapPane.xsl
  MapScaleBar.js
  MapScaleText.js
  MapScaleText.xsl
  MapTitle.xsl
  ModelStatus.js
  ModelStatus.xsl
  ModelSwitcher.js
  ModelUrlInput.js
  ModelUrlInput.xsl
  NtsForm.xsl
  Null.xsl
  Reset.js
  Save.js
  SaveModel.js
  SaveModel.xsl
  SearchForm.xsl
  SelectAllMapLayers.xsl
  SelectFeatureType.xsl
  SelectMapLayers.xsl
  SelectTimeFrame.js
  SelectTimeFrame.xsl
  ServiceRegistryList.js
  ServiceRegistryList.xsl
  SetAoi.js
  TabbedContent.js
  TabbedContent.xsl
  TimeSeries.js
  Timestamp.js
  Timestamp.xsl
  TransactionResponse.js
  TransactionResponse.xsl
  Version.xsl
  WebServiceForm.js
  WfsGetFeature.js
  Widget.js
  WidgetBase.js
  WidgetBase.js.txt
  WidgetBaseWZ.js