Skip to content

Instantly share code, notes, and snippets.

@jelovirt
Created January 26, 2015 06:55
Show Gist options
  • Save jelovirt/fcfbb2eb89cb98e4c1cf to your computer and use it in GitHub Desktop.
Save jelovirt/fcfbb2eb89cb98e4c1cf to your computer and use it in GitHub Desktop.
Subject scheme example
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="a">
<title>Topic a</title>
<body>
<p platform="oxs"/>
</body>
</topic>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE subjectScheme PUBLIC "-//OASIS//DTD DITA Subject Scheme Map//EN" "subjectScheme.dtd">
<subjectScheme id="B">
<subjectdef keys="os">
<subjectdef keys="windows"/>
</subjectdef>
<enumerationdef>
<attributedef name="platform"/>
<subjectdef keyref="os"/>
</enumerationdef>
</subjectScheme>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map id="sub">
<mapref type="subjectScheme" href="sub-ss.ditamap"/>
<topicref href="a.dita"/>
</map>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE subjectScheme PUBLIC "-//OASIS//DTD DITA Subject Scheme Map//EN" "subjectScheme.dtd">
<subjectScheme id="A">
<subjectdef keys="os">
<subjectdef keys="osx"/>
</subjectdef>
<enumerationdef>
<attributedef name="platform"/>
<subjectdef keyref="os"/>
</enumerationdef>
</subjectScheme>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map id="top">
<mapref type="subjectScheme" href="top-ss.ditamap"/>
<mapref href="sub.ditamap"/>
</map>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment