OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

dita message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [dita] Proposed revision for the keyword definition (was Keyw ords inDITA)


Hi, Paul and Bruce:

You're right to mention the <ph> element. Like <keyword>, the <ph> element doesn't have much semantic weight. The two elements differ, however, in the structural scope.

The <ph> element is expected to mark up a portion of a block -- for instance, <ph outputclass="caution">if you need to provide an inline warning.</ph>

The <keyword> element is expected to mark up a semantic word -- for instance, beware the <keyword outputclass="mythicalCreature">frumious bandersnatch</keyword> -- which is smaller than a phrase.

That is, the DITA content models have three levels of discourse granularity (block, phrase, and word) where some XML vocabularies only have two (block and inline).

DITA is not alone in having generic elements -- witness DocBook <phrase> or XHTML <div> and <span>. In all of these markups, an attribute (role in DocBook, class in XHTML, and outputclass in DITA) can refine the semantic intent. In DITA, however, you can also specialize for more formal declaration and better guidance to authors.

You note that more specialized elements are preferred to <keyword> -- but that's true of all elements. You should always use the most specialized element that applies.


Hoping that's useful,


Erik Hennum
ehennum@us.ibm.com


Inactive hide details for "Esrig, Bruce (Bruce)" <esrig@lucent.com>"Esrig, Bruce (Bruce)" <esrig@lucent.com>


          "Esrig, Bruce (Bruce)" <esrig@lucent.com>

          03/15/2005 06:41 AM


To

"'Paul Prescod'" <paul.prescod@blastradius.com>, Michael Priestley <mpriestl@ca.ibm.com>

cc

dita@lists.oasis-open.org

Subject

RE: [dita] Proposed revision for the keyword definition (was Keyw ords in DITA)

I would favor treating <keyword> as a virtual element in the body. Usually, one of its specializations would be used. <keyword> is only used directly in the body as an interim measure when an appropriate specialization has not yet been defined.

Bruce Esrig

================

The <keyword> element and its specializations are used to mark a word or phrase with special significance in a particular domain.

In the prolog of a topic, the <keyword> element may appear within the <keywords> element. In this context, the contents of the <keyword> element introduce a word or phrase that describes the content of the topic. This information is intended to help an author classify and identify a topic and to help an end user search for and retrieve topics.

In the body of a topic, the usual approach is to use a specialization of <keyword>. The specializations have special semantics and processing associated with them. If <keyword> is used in the body of a topic, it is often because no appropriate specialization has been created. In this context, any special semantics or processing for the <keyword> element are a matter of local practice.

GIF image



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]