Compare map and topic values
Posted: Mon Sep 12, 2016 9:03 pm
Hi,
I have a DITA Map with a topic reference, that has a filter attribute, for example @foo:
The topic has a <data> element, named foo with a value, that must be equal to the filter attribute.
Is it possible to compare both values with <oXygen/>, preferably with Schematron and a DITA Map validation scenario and a DITA Topic validation scenario
Greetings,
Stefan
I have a DITA Map with a topic reference, that has a filter attribute, for example @foo:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map id="map">
<title>DITA Topic Map</title>
<topicref href="topic.dita" foo="bar"/>
</map>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="topic">
<title>Topic</title>
<prolog>
<metadata>
<data name="foo" value="no-bar"/>
</metadata>
</prolog>
</topic>
Greetings,
Stefan