Link to internal anchor

Samuel Schluep <[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
Dear developers

Internal anchors can be integrated into Silva Documents using Index 
Items AFAIK. Because of possible conflicts with the index feature using 
the Silva Indexer I am wondering if this is good practice? Anyhow, it is 
a very useful feature. Still working with the Silva 1.1.5 version some 
concerns arouse about the compatibility of the generated a-tag's name 
attribute with the XML specs: the generated names used spacing, 
punctuation and special characters as they were entered by the user. 
However, this issue has been solved by Silva 1.3 or earlier. This is 
great news! (Thus for me issue 1150 seems to be resolved.)

But there is still another remaining problem: if a user wants to create 
a link to an internal anchor he needs to know the proper hex-encoding of 
the index item. It can be found looking at the HTML source code in the 
public preview - a not very user friendly solution. It would be nice, if 
this could be solved somehow automatically. Maybe the link renderer 
could properly encode the fragment, if it is pointing to an internal 
anchor point. However, this might not be very trivial. The _linkHelper 
would have to make sure, the link is pointing to an internal anchor 
point. Another solution could involve a special syntax, e.g. entering 
the fragment identifier in curly braces or the like - but this would 
have to be documented properly.

What is your advice to a user, who wants to create links to internal 
anchors? :-\

Best regards
Sam
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.