Having the id with the name is enough to define the fragment identifier. Are you sure the filename is correct (the piece of XHTML code is in Apples_to_Apples.xhtml)? Also, make sure the two names "toc-anchor-5" are exactly the same, that there are no no-break hyphens, for instance, or something weird.
|