← Prev in month ← Prev in thread

Question: Definition of "undefined key"

From
Su-Laine Yeo <>
Date
2011-04-26T20:11:33+00:00
ID
Thread
Question: Definition of "undefined key"
Title: Question: Definition of "undefined key"

Hi everyone,

One more question on the "Processing key references" topic here: http://docs.oasis-open.org/dita/v1.2/os/spec/archSpec/processing_key_references.html

It says, "If a referencing element contains a key reference with an undefined key, it is processed as if there were no key reference".  What does "undefined key" mean? For example, say you have:

<map>

<keydef keys="topic1" href=""topic1.dita"/>

</map>

<topic>

…

<xref keyref="topic1/para1" href=""topic2.dita#topic2/para2"></xref>

…

</topic1>

Case 1) If the topic1.dita file cannot be found, does the xref have an undefined key?

Case 2) If the topic1.dita file does not contain an element with  id="para1", does the xref have an undefined key?

If an xref is considered to have an undefined key, the href will be used. If it is not considered to have an undefined key, the processor should presumably treat it as an error condition.

Su-Laine

Su-Laine Yeo

Solutions Consultant 

JustSystems Canada, Inc.

Office: 1 (778) 327-6356



XMetaL Community Forums: http://forums.xmetal.com

For partners only: http://www.justpartnercenter.com
← Prev in month ← Prev in thread