- <xsl:template match="/m:record/m:datafield[@tag=245]">
- <z:index field="title">
- <xsl:apply-templates match="."/>
+ <xsl:template match="m:datafield[@tag='245']/m:subfield[@code='a']">
+ <!-- nested. does not have to be! -->
+ <z:index name="title">
+ <z:index name="title" type="p">
+ <xsl:value-of select="."/>
+ </z:index>
+ </z:index>
+
+ <!-- can do. But sort register only supports numeric attributes. -->
+ <z:index name="title" type="s">
+ <xsl:value-of select="."/>