Diff for 12018 design
Tue, 2008-05-20 14:21 by robander | Wed, 2008-05-21 02:36 by xiaojun.feng | ||
---|---|---|---|
< previous diff | next diff > | ||
Changes to Body | |||
Line 1 | Line 1 | ||
- | <h2><em><span style="font-size: 10.5pt; font-family: 'Times New Roman'">Design for </span></em><em><span style="font-size: 10.5pt; font-style: normal">item</span></em><em></em></h2>
| + | <h2><em><span style="font-size: 10.5pt; font-family: 'Times New Roman'">Design for </span></em><em><span style="font-size: 10.5pt; font-style: normal">item</span></em></h2>
|
<h3><em><span style="font-size: 10.5pt; font-family: 'Times New Roman'">What user need will be met by this
| <h3><em><span style="font-size: 10.5pt; font-family: 'Times New Roman'">What user need will be met by this
| ||
feature?</span></em></h3>
| feature?</span></em></h3>
| ||
Line 32 | Line 32 | ||
</span></span></span><!--[endif]--><span style="font-size: 10.5pt; font-family: 'Times New Roman'">If there is no navtitle element but navtitle
| </span></span></span><!--[endif]--><span style="font-size: 10.5pt; font-family: 'Times New Roman'">If there is no navtitle element but navtitle
| ||
attribute, and the attribute locktitle=’yes’, then there is also no need to
| attribute, and the attribute locktitle=’yes’, then there is also no need to
| ||
- | pull other information, but we should give a warning message to the user, suggesting
| + | pull other information. (It has been updated according to the RDA) <strong><em>RDA: this should not be a warning message now - the navtitle attribute should continue to work. Otherwise every existing map will cause many warnings.</em></strong> </span>
|
- | that it is recommended to use the navtitle element not the attribute any more. <strong><em>RDA: this should not be a warning message now - the navtitle attribute should continue to work. Otherwise every existing map will cause many warnings.</em></strong> </span>
| + | |
</p>
| </p>
| ||
<p style="margin-left: 18pt; text-indent: -18pt">
| <p style="margin-left: 18pt; text-indent: -18pt">
| ||
Line 91 | Line 90 | ||
<p>
| <p>
| ||
<span style="font-size: 10.5pt; font-family: 'Times New Roman'">In
| <span style="font-size: 10.5pt; font-family: 'Times New Roman'">In
| ||
- | the module of transformation, this change affects the process of grabbing the
| + | the main transformation, this change affects the process of grabbing the
|
- | title for the link. Because the element navtitle added, it should have priority. The details are omitted, for it is quite similar to the mappull
| + | title for the link. Because the element navtitle added, it should have priority over the attribute navtitle. So </span><span style="font-size: 10.5pt; font-family: 'Times New Roman'">the process of generating table of contents should be updated</span><span style="font-size: 10.5pt; font-family: 'Times New Roman'">, For the html transtype, update file map2htmltoc.xsl; for the htmlhelp tyanstype, update file map2hhc.xsl; for the eclipsehelp, update file map2eclipse.xsl; for the javahelp, update file map2TOC.xsl. The changes are quite similar, if the navtitle element exists, use it as the title for the link. The process of generating links in the topics is not affected, for it only uses the linktext element. <em><strong>RDA: When generating links in the topics, linktext has priority over navtitle. When generating a table of contents, navtitle has priority over linktext.</strong></em></span>
|
- | process. <em><strong>RDA: When generating links in the topics, linktext has priority over navtitle. When generating a table of contents, navtitle has priority over linktext.</strong></em></span>
| + | |
</p>
| </p>
| ||
<h3><strong><em><span style="font-size: 10.5pt">What sections of the toolkit will be impacted by the
| <h3><strong><em><span style="font-size: 10.5pt">What sections of the toolkit will be impacted by the
|
12018 design
Design for item
What user need will be met by this feature?
Users can easily reuse the text inside the newly created text element (<topicmeta><navtitle> and <reltable><title>) by conref or other methods, while in the previous version, there is no way to reuse the text inside the attribute.
What is the technical design for the change
The change affects the following modules including mappull, and transformation.
Mappull pull the topic title and short description into the ditamap to serve as the metadata of navigation links. The steps of pulling the navtitle element is as following
1. Check navtitle element. If navtitle element does exist and attribute locktitle=’yes’, then there is no need to pull other information to navtitle element.
2. If there is no navtitle element but navtitle attribute, and the attribute locktitle=’yes’, then there is also no need to pull other information. (It has been updated according to the RDA) RDA: this should not be a warning message now - the navtitle attribute should continue to work. Otherwise every existing map will cause many warnings.
3. If neither element nor attribute exist, or the attribute locktitle=’no’ or it is not set , pull the other information to serve as the value of navtitle, note that, it is no longer attribute, it is element.
We should update the code of writing the navtitle attribute, from
<xsl:attribute name="navtitle">
<xsl:value-of select="$navtitle"/>
</xsl:attribute>
to
<navtitle class="- topic/navtitle ">
<xsl:value-of select="$navtitle"/>
</navtitle>
Note that, it may not be so easy, because <navtitle> is the descendent of <topicmeta>.
The change also affects the linktext element. See following details
1. If linktext element exists, just use it.
2. If it doesn’t exist, grab other information to serve as the value of linktext element. Noted that, in the grabbing process, the behavior having to do with the navtitle attribute should update.
In the main transformation, this change affects the process of grabbing the title for the link. Because the element navtitle added, it should have priority over the attribute navtitle. So the process of generating table of contents should be updated, For the html transtype, update file map2htmltoc.xsl; for the htmlhelp tyanstype, update file map2hhc.xsl; for the eclipsehelp, update file map2eclipse.xsl; for the javahelp, update file map2TOC.xsl. The changes are quite similar, if the navtitle element exists, use it as the title for the link. The process of generating links in the topics is not affected, for it only uses the linktext element. RDA: When generating links in the topics, linktext has priority over navtitle. When generating a table of contents, navtitle has priority over linktext.
What sections of the toolkit will be impacted by the change?
The change will impact mappull and main transformation module.
See also
none