Bug #1756
closedA bug in eml stylesheets in displaying Doman Info
0%
Description
If you go to given below link:
http://knb.ecoinformatics.org/knb/servlet/metacat?
action=read&qformat=nceas&docid=nceas.104.24&displaymodule=entity&entitytype=dat
aTable&entityindex=4
and click on 'Domain Info', it displays nothing. The link that Domain Info
points to is:
http://knb.ecoinformatics.org/knb/servlet/metacat?
action=read&qformat=nceas&docid=nceas.104.24&displaymodule=attributedomain&entit
ytype=dataTable&entityindex=4&attributeindex=1
On the other hand, if you go to following link, you get the info:
http://knb.ecoinformatics.org/knb/servlet/metacat?
action=read&qformat=nceas&docid=nceas.104.24&displaymodule=attributedomain&entit
ytype=dataTable&entityindex=4&attributeindex=2
So the links in stylesheets need to be corrected so that contain the right
attributeIndex in them.
Updated by Will Tyburczy over 18 years ago
The problem here seems to be where the 'position()' function is being called
when it is assigned to $attributeindex (inside eml-attribute.xsl). instead of
being called in the context of <foreach select="attribute">, it is called in the
context of an "apply-template" of a measurement domain, which will always make
the position function return '1'. The $attributeindex should be assigned a
value in the proper context, probably up where $stripes and $innerstripes are
assigned.
Updated by Callie Bowdish over 16 years ago
This is working correctly now. I think this cvs entry might of been the fix.
Revision 1.2, Thu Jun 15 18:18:51 2006 UTC (20 months, 3 weeks ago) by sgarg
Branch: MAIN
CVS Tags: RELEASE_EML_2_0_1_UPDATE_4, RELEASE_EML_2_0_1_UPDATE_3
Changes since 1.1: +11 -10 lines
Changed scope where $attributeIndex was set in order to correctly identify the attribute's position in the dataTable
(Commit done by Saurabh Garg for Will Tyburczy )