projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
298a790
)
changed to respect correct index instructions in new DOM filter
author
Marc Cromme
<marc@indexdata.dk>
Thu, 15 Feb 2007 15:41:16 +0000
(15:41 +0000)
committer
Marc Cromme
<marc@indexdata.dk>
Thu, 15 Feb 2007 15:41:16 +0000
(15:41 +0000)
test/xslt/dom-index-element.xsl
patch
|
blob
|
history
diff --git
a/test/xslt/dom-index-element.xsl
b/test/xslt/dom-index-element.xsl
index
82717f7
..
222b626
100644
(file)
--- a/
test/xslt/dom-index-element.xsl
+++ b/
test/xslt/dom-index-element.xsl
@@
-3,7
+3,7
@@
xmlns:z="http://indexdata.com/zebra-2.0"
exclude-result-prefixes="m z"
version="1.0">
xmlns:z="http://indexdata.com/zebra-2.0"
exclude-result-prefixes="m z"
version="1.0">
- <!-- $Id: dom-index-element.xsl,v 1.1 2007-02-15 13:01:00 marc Exp $ -->
+ <!-- $Id: dom-index-element.xsl,v 1.2 2007-02-15 15:41:16 marc Exp $ -->
<xsl:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
<xsl:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
@@
-12,8
+12,7
@@
<xsl:template match="/m:record">
<z:record z:id="{normalize-space(m:controlfield[@tag='001'])}"
<xsl:template match="/m:record">
<z:record z:id="{normalize-space(m:controlfield[@tag='001'])}"
- z:rank="{normalize-space(m:rank)}"
- >
+ z:rank="{normalize-space(m:rank)}">
<xsl:apply-templates/>
</z:record>
</xsl:template>
<xsl:apply-templates/>
</z:record>
</xsl:template>
@@
-25,18
+24,9
@@
</xsl:template>
<xsl:template match="m:datafield[@tag='245']/m:subfield[@code='a']">
</xsl:template>
<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">
+ <z:index name="title:w title:p title:s any:w">
<xsl:value-of select="."/>
</z:index>
<xsl:value-of select="."/>
</z:index>
-
</xsl:template>
</xsl:stylesheet>
</xsl:template>
</xsl:stylesheet>