{"action":"created","issue":{"url":"https://api.github.com/repos/dita-ot/dita-ot/issues/2016","labels_url":"https://api.github.com/repos/dita-ot/dita-ot/issues/2016/labels{/name}","comments_url":"https://api.github.com/repos/dita-ot/dita-ot/issues/2016/comments","events_url":"https://api.github.com/repos/dita-ot/dita-ot/issues/2016/events","html_url":"https://github.com/dita-ot/dita-ot/issues/2016","id":103252734,"number":2016,"title":"Pre-processing of map <navtitle> elements different in DITA-OT >=2.0","user":{"login":"ywestra","id":13981103,"avatar_url":"https://avatars.githubusercontent.com/u/13981103?v=3","gravatar_id":"","url":"https://api.github.com/users/ywestra","html_url":"https://github.com/ywestra","followers_url":"https://api.github.com/users/ywestra/followers","following_url":"https://api.github.com/users/ywestra/following{/other_user}","gists_url":"https://api.github.com/users/ywestra/gists{/gist_id}","starred_url":"https://api.github.com/users/ywestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ywestra/subscriptions","organizations_url":"https://api.github.com/users/ywestra/orgs","repos_url":"https://api.github.com/users/ywestra/repos","events_url":"https://api.github.com/users/ywestra/events{/privacy}","received_events_url":"https://api.github.com/users/ywestra/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dita-ot/dita-ot/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dita-ot/dita-ot/labels/P2","name":"P2","color":"e102d8"},{"url":"https://api.github.com/repos/dita-ot/dita-ot/labels/preprocess","name":"preprocess","color":"84b6e8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-26T12:16:59Z","updated_at":"2015-09-22T11:34:19Z","closed_at":null,"body":"Pre-processing of map `<navtitle>` elements different in DITA-OT >=2.0 \r\n\r\nAfter a couple of hours deep-dive I'm pretty sure that the pre-processing behaviour of populating the `<navtitle>` elements inside the pre-processed DITA maps during mappull has changed. I'm almost sure that this is not intentional behaviour and hope it can be fixed or worked around easily. \r\n\r\nGiven the following minimalistic input. \r\nmap.ditamap: \r\n```xml\r\n<map> \r\n<topicref href=\"topic.dita\"> \r\n<topicmeta> \r\n<navtitle>Topic navtitle</navtitle> \r\n</topicmeta> \r\n</topicref> \r\n</map> \r\n```\r\ntopic.dita: \r\n```xml\r\n<concept id=\"topic\";> \r\n<title>Concept title</title> \r\n<conbody> \r\n<p>My concept</p> \r\n</conbody> \r\n</concept> \r\n```\r\n\r\nThis will generate the following pre-processed version of map.ditamap in the temp folder (stripped debug attributes etc....): \r\n\r\n```xml\r\n<map> \r\n<topicref href=\"topic.dita\"> \r\n<topicmeta> \r\n<navtitle>Topic navtitle</navtitle> \r\n<?ditaot gentext?> \r\n<linktext>Concept title</linktext>\r\n<?ditaot genshortdesc?> \r\n<shortdesc /> \r\n\r\n</topicmeta> \r\n</topicref> \r\n</map> \r\n```\r\n\r\nIn previous DITA-OT versions the content would be: \r\n```xml\r\n<map> \r\n<topicref href=\"topic.dita\"> \r\n<topicmeta> \r\n<navtitle>Concept title</navtitle&gt; \r\n........ \r\n```\r\nThe result of this changes is that all navigational items in output like an index.html TOC file or a CHM HHC file show the `<navtitle>` of the map and not the `<title>` of the topic while the `<navtitle>` of the map should only be used if the `@locktitle` attribute was set to 'yes'. \r\n\r\nTo rule out some possible causes I tried the following: \r\n\r\n-   Remove the `<navtitle>` element from the map: then it works as expected \r\n-   Set a `@locktitle` attribute to 'no': no change \r\n-   Add an empty `<navtitle>` element: no change, the empty navtitle is preserved still \r\n\r\nMost prominent questions: \r\n\r\n1.  Is this a known issue? \r\n2.  Can you please confirm it is not intentionally so should be changed? \r\n3.  Are there any (known) workarounds \r\n\r\nPlease, note that I've tested on different DITA-OT versions and on different systems. All with the same result. Doing a deep-dive in mappullImpl.xsl proofs that the behaviour is not as expected."},"comment":{"url":"https://api.github.com/repos/dita-ot/dita-ot/issues/comments/142260752","html_url":"https://github.com/dita-ot/dita-ot/issues/2016#issuecomment-142260752","issue_url":"https://api.github.com/repos/dita-ot/dita-ot/issues/2016","id":142260752,"user":{"login":"eerohele","id":31859,"avatar_url":"https://avatars.githubusercontent.com/u/31859?v=3","gravatar_id":"","url":"https://api.github.com/users/eerohele","html_url":"https://github.com/eerohele","followers_url":"https://api.github.com/users/eerohele/followers","following_url":"https://api.github.com/users/eerohele/following{/other_user}","gists_url":"https://api.github.com/users/eerohele/gists{/gist_id}","starred_url":"https://api.github.com/users/eerohele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eerohele/subscriptions","organizations_url":"https://api.github.com/users/eerohele/orgs","repos_url":"https://api.github.com/users/eerohele/repos","events_url":"https://api.github.com/users/eerohele/events{/privacy}","received_events_url":"https://api.github.com/users/eerohele/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T11:34:19Z","updated_at":"2015-09-22T11:34:19Z","body":"Bisected; the issue was introduced in 77d3cd64eccf66868753f4853c7f86117daaa8bd."}}