|
[
Permlink
| « Hide
]
Johannes Schaefer added a comment - 06/Sep/04 09:14 PM
have fun!
Sorry, there is no online site available showing index creation.
How-to:
1. Copy the stylesheet abc2document.xsl to your project's skin-directory. It extracts the <indexterm>s from wholesite.xml. 2. Copy abcindex.xmap to project/src/documentation. This is an exact copy of aggregate.xmap plus: <map:transform src=".../xslt/html/abc2document.xsl"/> 3. Copy sitemap.xmap to project/src/documentation, it contains: <map:match pattern="abc.xml"> <map:mount uri-prefix="" src="abcindex.xmap" check-reload="yes"/> </map:match> 4. Tag your <indexterm>indexterms</indexterm> in the source-xml. Note: this breaks with forrest's document-vXX.dtd's! 5. Add <abc label="A..Z Index" href="abc.html"> to your site.xml. You can use the small project, unzip it and do 'forrest run', too. There's still a lot to do, e.g., - indexterms shouldn't be case-sensitive, - references shouldn't repeat, ... use forrest-index_v02.zip as a small demo project, containing all the files
abcindex.xmap creates wholesite.xml and then passes it through abc2document.xsl
Project's sitemap.xmap to match abc.xml
extract indexterms from wholesite.xml and put them into forrest-document format
This sounds cool (not looked at it yet, but it is something I would like to use). However, I do have a concern.
You point out that this breaks the Forrest XDoc DTD's. We are moving the DTD's to a subset of XHTML2 and will be unlikely to add any new elements that are not part of XHTML2 (I don't think indexTerm is). I would suggest you use the class attribute of a surrounding element like <span>. We don't have that in the DTD's either at present, but I see this as a pretty good reason to add it, what do others think? Are there alternatives? We can add to the Forrest document-v2* DTD as compatible with XHTML2. This email discussion is part of the plan:
http://marc.theaimsgroup.com/?l=forrest-dev&m=102909917505608 Yes "span" and "div" are on the list. Glossary and Index are pretty much the same; although I did not look at Ross' work; not sure about citations but might be related as well.
Contrary to Jahannes last comment, this index work is not the same as the glossary work in another issue.
Johnnes' index work extracts index terms from content and creates an index page for them. The glossary works the other way around. You start with a glossary page, complete with aliases, accronyms and definitions and insert links into the documents from there (although the link insertion is not automatic yet, the doc needs to be marked up). It seems that Urgency field was accidently set, so now Urgency=none.
It certainly would be a good thing to have, so raised the Reporter-Priority to Major. Any takers to build upon Johannes' work? The attachments in FOR-280-attachments.tar.gz are retrieved from our old issue tracker. Contributed by Johannes Schaefer.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||