Skip to content

Instantly share code, notes, and snippets.

@raducoravu
Last active October 21, 2022 19:17
Show Gist options
  • Save raducoravu/ca6eae2c81e0df6a5b90f96d7570e2f6 to your computer and use it in GitHub Desktop.
Save raducoravu/ca6eae2c81e0df6a5b90f96d7570e2f6 to your computer and use it in GitHub Desktop.
Keyscope conkeyrefs
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
<title>Main</title>
<topicref href="washing_car.dita" keyscope="car">
<keydef href="reusables.dita" keys="reusables"/>
<keydef keys="product">
<topicmeta>
<keywords>
<keyword>car</keyword>
</keywords>
</topicmeta>
</keydef>
</topicref>
<topicref href="washing_cat.dita" keyscope="cat">
<keydef href="reusables.dita" keys="reusables"/>
<keydef keys="product">
<topicmeta>
<keywords>
<keyword>cat</keyword>
</keywords>
</topicmeta>
</keydef>
</topicref>
</map>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="reusables">
<title>Reusables</title>
<body>
<p>
<ol id="steps">
<li>Washing the <ph keyref="product"/></li>
</ol>
</p>
</body>
</topic>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="washing_car">
<title>Washing the <ph keyref="product"/></title>
<body>
<p>
<ol conkeyref="reusables/steps" id="ol_iqg_hfg_fvb">
<li/>
</ol>
</p>
</body>
</topic>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="washing_cat">
<title>Washing the <ph keyref="product"/></title>
<body>
<p>
<ol conkeyref="reusables/steps" id="ol_jqc_jfg_fvb">
<li/>
</ol>
</p>
</body>
</topic>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment