Diff for Design for implementing OASIS Item 12026

Thu, 2008-10-16 07:33 by zhou.youyiThu, 2008-10-16 07:34 by zhou.youyi
Changes to Body
Line 1Line 1
-
<h3><em><em><span>What user need will be met by this
+
<h3><em><em>What user need will be met by this
-
feature?</span></em></em></h3>
+
feature?</em></em></h3>
 
<p>
 
<p>
 
<!--[if gte mso 9]><xml>
 
<!--[if gte mso 9]><xml>
Line 97Line 97
 
mso-bidi-language:#0400;}
 
mso-bidi-language:#0400;}
 
</style>
 
</style>
-
<![endif]--><span style="font-size: 10.5pt; font-family: 'Times New Roman'">Users can define various glossary entries which serve as specific terms
+
<![endif]--><span style="font-size: 10.5pt"><span style="font-family: 'Times New Roman'">Users can define various glossary entries which serve as specific terms
 
or acronyms. Such glossary entries will be expanded to appropriate form according
 
or acronyms. Such glossary entries will be expanded to appropriate form according
-
to the context automatically.</span>
+
to the context automatically.</span></span>
 
</p>
 
</p>
 
<p>
 
<p>
-
<strong><em><span>What is the
+
<strong><em>What is the
-
technical design for the change</span></em></strong>
+
technical design for the change</em></strong>
 
</p>
 
</p>
 
<p>
 
<p>
Line 232Line 232
 
</p>
 
</p>
 
<p class="MsoNormal">
 
<p class="MsoNormal">
-
<span>Key definitions and references are already
+
Key definitions and references are already
 
prepared during key definition parsing process, so we mainly focus on how to
 
prepared during key definition parsing process, so we mainly focus on how to
 
resolve keyref accordingly in appropriate contexts. Here we have 2 problems yet
 
resolve keyref accordingly in appropriate contexts. Here we have 2 problems yet
-
to solve while resolving the keys:</span>
+
to solve while resolving the keys:
 
</p>
 
</p>
 
<p style="margin-left: 18pt; text-indent: -18pt" class="MsoNormal">
 
<p style="margin-left: 18pt; text-indent: -18pt" class="MsoNormal">
-
<!--[if !supportLists]--><span><span>1.<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">       </span></span></span><!--[endif]--><span>How to determine in what context a key is referenced? The
+
<!--[if !supportLists]-->1.<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">       </span><!--[endif]-->How to determine in what context a key is referenced? The
 
description on how to distinguish introductory context from other contexts in “<strong>DITA
 
description on how to distinguish introductory context from other contexts in “<strong>DITA
 
Proposed Feature #12026 and #12038”
 
Proposed Feature #12026 and #12038”
-
</strong><span>is not clear enough to define all
+
</strong>is not clear enough to define all
 
possible contexts that would be encountered. Thus we classify the contexts into
 
possible contexts that would be encountered. Thus we classify the contexts into
 
three specific situations for the time being. More accurate definition and
 
three specific situations for the time being. More accurate definition and
 
classification of different contexts should be considered thoroughly and added
 
classification of different contexts should be considered thoroughly and added
-
later.</span></span>
+
later.
 
</p>
 
</p>
 
<p style="margin-left: 42pt; text-indent: -21pt" class="MsoNormal">
 
<p style="margin-left: 42pt; text-indent: -21pt" class="MsoNormal">
-
<!--[if !supportLists]--><span><span>a)<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">        
+
<!--[if !supportLists]-->a)<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">        
-
</span></span></span><!--[endif]--><span>The very first appearance of a keyref pointing to a certain glossentry in
+
</span><!--[endif]-->The very first appearance of a keyref pointing to a certain glossentry in
 
a deliverable book context should be expanded to its surface form; otherwise an
 
a deliverable book context should be expanded to its surface form; otherwise an
 
acronym form (or other forms appropriate) should be used. Intuitively, the very
 
acronym form (or other forms appropriate) should be used. Intuitively, the very
Line 256Line 256
 
introductory context for the whole book. Thus, all keyrefs appearing in this
 
introductory context for the whole book. Thus, all keyrefs appearing in this
 
first topic should be expanded to surface form. Keyrefs in other contexts are
 
first topic should be expanded to surface form. Keyrefs in other contexts are
-
replaces with other appropriate forms of the corresponding glossentry.</span>
+
replaces with other appropriate forms of the corresponding glossentry.
 
</p>
 
</p>
 
<p style="margin-left: 42pt; text-indent: -21pt" class="MsoNormal">
 
<p style="margin-left: 42pt; text-indent: -21pt" class="MsoNormal">
-
<!--[if !supportLists]--><span><span>b)<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">       
+
<!--[if !supportLists]-->b)<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">       
-
</span></span></span><!--[endif]--><span>The terms appearing in online documents should have a hover tooltip of
+
</span><!--[endif]-->The terms appearing in online documents should have a hover tooltip of
-
its surface form.</span>
+
its surface form.
 
</p>
 
</p>
 
<p style="margin-left: 42pt; text-indent: -21pt" class="MsoNormal">
 
<p style="margin-left: 42pt; text-indent: -21pt" class="MsoNormal">
-
<!--[if !supportLists]--><span><span>c)<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">        
+
<!--[if !supportLists]-->c)<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">        
-
</span></span></span><!--[endif]--><span>Terms appearing in copyright declaration should be expanded to its
+
</span><!--[endif]-->Terms appearing in copyright declaration should be expanded to its
-
surface form.</span>
+
surface form.
 
</p>
 
</p>
 
<p style="margin-left: 18pt; text-indent: -18pt" class="MsoNormal">
 
<p style="margin-left: 18pt; text-indent: -18pt" class="MsoNormal">
-
<!--[if !supportLists]--><span><span>2.<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">       </span></span></span><!--[endif]--><span>How the contents of glossentries
+
<!--[if !supportLists]-->2.<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">       </span><!--[endif]-->How the contents of glossentries
-
are saved and used. We prefer to use a lazy-loading mechanism as follows:</span>
+
are saved and used. We prefer to use a lazy-loading mechanism as follows:
 
</p>
 
</p>
 
<p style="margin-left: 42pt; text-indent: -21pt" class="MsoNormal">
 
<p style="margin-left: 42pt; text-indent: -21pt" class="MsoNormal">
-
<!--[if !supportLists]--><span><span>a)<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">        
+
<!--[if !supportLists]-->a)<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">        
-
</span></span></span><!--[endif]--><span>When the keyref is encountered for the first time, the target file
+
</span><!--[endif]-->When the keyref is encountered for the first time, the target file
 
associated with the key should be parsed and corresponding surface form
 
associated with the key should be parsed and corresponding surface form
 
together with other forms should be loaded into memory and saved with the key
 
together with other forms should be loaded into memory and saved with the key
 
as a triplet. We use a Hashtbale to store such triplet, concatenating all the
 
as a triplet. We use a Hashtbale to store such triplet, concatenating all the
-
forms together separating by a stick.</span>
+
forms together separating by a stick.
 
</p>
 
</p>
 
<p style="margin-left: 42pt; text-indent: -21pt" class="MsoNormal">
 
<p style="margin-left: 42pt; text-indent: -21pt" class="MsoNormal">
-
<!--[if !supportLists]--><span><span>b)<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">       
+
<!--[if !supportLists]-->b)<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: 'Times New Roman'">       
-
</span></span></span><!--[endif]--><span>If it is not the first time the keyref is resolved ( there is an existing
+
</span><!--[endif]-->If it is not the first time the keyref is resolved ( there is an existing
 
entry in the Hashtable mentioned above), appropriate form is retrieved and
 
entry in the Hashtable mentioned above), appropriate form is retrieved and
-
used.</span>
+
used.
 
</p>
 
</p>
 
<p>
 
<p>
 
&nbsp;
 
&nbsp;
 
</p>
 
</p>
-
<h3><strong><em><strong><em><span>What sections of the toolkit will be impacted by the
+
<h3><strong><em><strong><em>What sections of the toolkit will be impacted by the
-
change?</span></em></strong></em></strong></h3>
+
change?</em></strong></em></strong></h3>
 
<p>
 
<p>
 
KeyRef resolution
 
KeyRef resolution
Revision of Thu, 2008-10-16 07:34:

Design for implementing OASIS Item 12026

What user need will be met by this feature?

Normal 0 7.8 ? 0 2 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:????; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} Users can define various glossary entries which serve as specific terms or acronyms. Such glossary entries will be expanded to appropriate form according to the context automatically.

What is the technical design for the change

Normal 0 7.8 ? 0 2 false false false MicrosoftInternetExplorer4 st1\:*{behavior:url(#ieooui) } /* Style Definitions */ table.MsoNormalTable {mso-style-name:????; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}

Key definitions and references are already prepared during key definition parsing process, so we mainly focus on how to resolve keyref accordingly in appropriate contexts. Here we have 2 problems yet to solve while resolving the keys:

1.       How to determine in what context a key is referenced? The description on how to distinguish introductory context from other contexts in “DITA Proposed Feature #12026 and #12038” is not clear enough to define all possible contexts that would be encountered. Thus we classify the contexts into three specific situations for the time being. More accurate definition and classification of different contexts should be considered thoroughly and added later.

a)         The very first appearance of a keyref pointing to a certain glossentry in a deliverable book context should be expanded to its surface form; otherwise an acronym form (or other forms appropriate) should be used. Intuitively, the very first topic entity that we encounter during preprocess (either directly in a topic dita file or indirectly referenced in a ditamap file) would be an introductory context for the whole book. Thus, all keyrefs appearing in this first topic should be expanded to surface form. Keyrefs in other contexts are replaces with other appropriate forms of the corresponding glossentry.

b)        The terms appearing in online documents should have a hover tooltip of its surface form.

c)         Terms appearing in copyright declaration should be expanded to its surface form.

2.       How the contents of glossentries are saved and used. We prefer to use a lazy-loading mechanism as follows:

a)         When the keyref is encountered for the first time, the target file associated with the key should be parsed and corresponding surface form together with other forms should be loaded into memory and saved with the key as a triplet. We use a Hashtbale to store such triplet, concatenating all the forms together separating by a stick.

b)        If it is not the first time the keyref is resolved ( there is an existing entry in the Hashtable mentioned above), appropriate form is retrieved and used.

 

What sections of the toolkit will be impacted by the change?

KeyRef resolution

 

XML.org Focus Areas: BPEL | DITA | ebXML | IDtrust | OpenDocument | SAML | UBL | UDDI
OASIS sites: OASIS | Cover Pages | XML.org | AMQP | CGM Open | eGov | Emergency | IDtrust | LegalXML | Open CSA | OSLC | WS-I