Empty link with keyref
Posted: Mon Aug 31, 2015 8:01 pm
Hi,
I'm trying to use keyrefs in a DITA XML file so that links show up when the file is included in one map and no link shows up when the file is included in another map. I'm following the example in http://oxygenxml.com/doc/m/dita1.2_spec ... _keys.html. Specifically, I'm looking at #6 in the "Redirect a link or xref" section:
and this is what I included in my dita file with the link:
I tried playing around with this, but could not get it to work. Am I doing something wrong?
Thanks,
AB
I'm trying to use keyrefs in a DITA XML file so that links show up when the file is included in one map and no link shows up when the file is included in another map. I'm following the example in http://oxygenxml.com/doc/m/dita1.2_spec ... _keys.html. Specifically, I'm looking at #6 in the "Redirect a link or xref" section:
When I include a topicref with no href in my ditamap and try to generate the PDF using Apache FOP, however, I get the following error:Author 5 wants to turn the link into just plain text (not hypertext) - for example a citation of a print-only magazine article.
Code: Select all
<topicref keys="a">
<topicmeta>
<linktext>This is just text.</linktext>
</topicmeta>
</topicref>
This what I included in my .ditamap file (which is a bookmap):Engine name: DITA-OT
Severity: error
Description: Missing attribute on fo:basic-link: Either external-destination or internal-destination must be specified.
Start location: 8001:0
URL: http://www.oxygenxml.com/internalHelp/f ... s-dita-pdf
Code: Select all
<topicref keys="CONTAINER" scope="local">
<topicmeta>
<linktext>CONTAINER</linktext>
</topicmeta>
</topicref>
Code: Select all
<xref keyref="CONTAINER" href="../markets/c_market_container.dita">CONTAINER</xref>
Thanks,
AB