Greetings,
I'm trying to create an index, but what I'm doing doesn't seem to be correct, so I think maybe I'm misinterpreting how to do things. Let's say I have several references to the string "London" in my document. In my index, I'd normally want to see the page numbers for all the "London" references .
I do this by wrapping each instance of the word "London" with the dfn tag like so:
I then have an index (just simple testing) that looks like this (I'm using the Designing sample as my reference):
What I find though, is that I don't get the page numbers, I seem to get a count, or sometimes I do, sometimes I DO get a single page number (what looks like one), but often I get 0 or 1 (in my real doc, things removed for clarity) I also get an error that "london-tag" is defined more than once too, so clearly I'm doing something wrong.
So, what I'm wondering is, am I actually building things correctly? Should I actually see an entry for London with 3 page numbers after it, if things get parsed correctly?
I'm trying to create an index, but what I'm doing doesn't seem to be correct, so I think maybe I'm misinterpreting how to do things. Let's say I have several references to the string "London" in my document. In my index, I'd normally want to see the page numbers for all the "London" references .
I do this by wrapping each instance of the word "London" with the dfn tag like so:
<dfn class="london-tag">London</dfn>
I then have an index (just simple testing) that looks like this (I'm using the Designing sample as my reference):
<div class="index" id="index-h-1">
<ul class="index"><li><a href="#london-tag">London</a></li></ul>
</div>
What I find though, is that I don't get the page numbers, I seem to get a count, or sometimes I do, sometimes I DO get a single page number (what looks like one), but often I get 0 or 1 (in my real doc, things removed for clarity) I also get an error that "london-tag" is defined more than once too, so clearly I'm doing something wrong.
So, what I'm wondering is, am I actually building things correctly? Should I actually see an entry for London with 3 page numbers after it, if things get parsed correctly?