- <z:record id="{concat(
- e:serverInfo/e:host, ':',
- e:serverInfo/e:port, '/',
- e:serverInfo/e:database)}"
- type="update">
+ <xsl:variable name="id"><xsl:value-of select="translate(concat(
+ e:serverInfo/e:host, ':',
+ e:serverInfo/e:port, '/',
+ e:serverInfo/e:database), $ucletters, $lcletters)"/></xsl:variable>
+ <z:record id="{$id}" type="update">
+
+ <!-- Well, not quite _anywhere_. Only textual fields are indexed -->
+ <z:index name="cql:anywhere" type="w">
+ <xsl:value-of select="e:serverInfo/e:host"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="e:serverInfo/e:port"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="e:serverInfo/e:database"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="e:databaseInfo/e:title"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="e:databaseInfo/e:description"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="e:databaseInfo/e:author"/>
+ </z:index>
+
+ <z:index name="rec:authorityIndicator" type="0">
+ <xsl:value-of select="@authoritative"/>
+ </z:index>