[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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
syeo@justsystems.com
XMetaL Community Forums: http://forums.xmetal.com
For partners only: http://www.justpartnercenter.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]