Project

General

Profile

Bug #1756

A bug in eml stylesheets in displaying Doman Info

Added by Saurabh Garg about 17 years ago. Updated over 13 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
eml - general bugs
Target version:
Start date:
11/04/2004
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
1756

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.

History

#1 Updated by Will Tyburczy almost 16 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.

#2 Updated by Callie Bowdish over 13 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 )

#3 Updated by Redmine Admin over 8 years ago

Original Bugzilla ID was 1756

Also available in: Atom PDF