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] Example of how keys are resolved


Yes, that is correct.

Cheers,

E.

On 1/28/11 8:08 AM, "Kristen Eberlein" <keberlein@sdl.com> wrote:

> I want to wrap up the various e-mails on this thread. Is the following an
> accurate example of how keys are resolved?
>  
> Example 
> Assume that each map contains a different definition for the  key named
> product.
>  
> Contents of root map
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
> <map title="Example of how keys resolve">
>     <mapref href="map-one.ditamap"/>
>     <mapref href="map-two.ditamap"/>
>     <topicref href=²stuff.dita²>
>           <topicref href="widget-A.dita" keys="product"/>
>     </topicref>
>     <topicref href=²widget-C.dita² keys=²product² />
> </map>
>  
> Content of map-one.ditamap
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
> <map title="Submap one">
>     <mapref href="map-three.ditamap"/>
>     <keydef keys=²product² href=²widget-B.dita²/>
> </map>
> Order in which keys take precedence
> 1.     First key definition in the root map in document order. In this
> example, the key product is bound to widget-A.dita.
> 
> 2.     First key definition in map-one.ditamap.
> 
> 3.     First key definition in map-two.ditamap
> 
> 4.     First key definition in map-three.ditamap
> 
> Basic principles
> ·         Within an individual DITA map, keys are resolved in document order.
> 
> ·         When a root map contains sub maps, the maps are handled in
> breadth-first order.
> 
> Best regards,
> Kris
> Kristen James Eberlein l DITA Architect and Technical Specialist l SDL
> Structured Content Technologies Division l (t) + 1 (919) 682-2290 l
> keberlein@sdl.com <mailto:keberlein@sdl.com>
>   <http://www.sdl.com/>
> Please consider the environment before printing this e-mail
>  

-- 
Eliot Kimber
Senior Solutions Architect
"Bringing Strategy, Content, and Technology Together"
Main: 512.554.9368
www.reallysi.com
www.rsuitecms.com



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