New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xref via keyref to external HTML page doesn't work #1439
Comments
This one's a bit tricky. In the
Then, in the One solution might be to modify Another option would be to modify keyref parsing ( In any case, a workaround is to use |
Ran into a variant of this while building the DITA-OT docs from the 2.3.1 tag, so it looks like the issue still exists in recent versions. With a key defined in a map as: <keydef keys="participate" href="http://www.dita-ot.org/participate"
scope="external" format="html" locktitle="yes">
<topicmeta>
<navtitle>Participate</navtitle>
</topicmeta>
</keydef> and referenced in another map via: <topicref keyref="participate"/> the If the same content is placed directly in the referencing map as a <topicref keys="participate" href="http://www.dita-ot.org/participate"
scope="external" format="html" locktitle="yes">
<topicmeta>
<navtitle>Participate</navtitle>
</topicmeta>
</topicref> |
What is the expected HTML or PDF rendition result of having a navigation topicref to an external HTML Web page? It makes sense to have a key like this for use from xrefs but I would not expect that kind of resource to be referenced directly from a navigation topicref. |
We had that in the DITA-OT documentation TOC for the first several years - it worked from the TocJS and HTML Help versions, but I don't see any reasonable way to include the info for PDF (apart from, maybe, a link if there is some |
Reproduced with 3.0.2, still present:
|
Hi,
There was a similar issue reported in the past, but the case is a bit different #1174.
DITA-OT version tested (direct from download): 1.6.3, 1.7.1 both have the issue.
In my understanding, either navtitle element or linktext are not honored in the map resolution (Not sure I use the right vocabulary - sorry - I mean when the map is built in the preprocess stage), when a keyref reference an external html page.
The link text is honored in a context of a topic resolution.
Code
Here is a map using linktext and navtitle
After preprocess, the @href value seems to replace the element navtitle and link text
Result
In the navigation, we will see http://www.ncbi.nlm.nih.gov/
In the concept: NCBI web site
Samples
https://dl.dropbox.com/u/14980268/issues/keyref-html.zip
The text was updated successfully, but these errors were encountered: