Why is my topic metadata merging with my map metadata during preprocessing?

Post here questions and problems related to editing and publishing DITA content.
ann.jensen
Posts: 316
Joined: Wed Jun 17, 2015 10:19 am

Why is my topic metadata merging with my map metadata during preprocessing?

Post by ann.jensen »

Hi,

I am trying to troubleshoot an unexpected value coming from preprocessing. On debugging topicpullImpl.xsl it appears that the text values from the <map<topicmeta> elements are somehow merging with those from

<reference><prolog><metadata> elements
where the reference is one of the children of the map that is linked to from another child topic of the map.

When I look at the value for

Code: Select all

<xsl:value-of select="$targetElement//*[contains(@class, ' topic/prolog ')]/*[contains(@class, ' topic/metadata ')]/*[contains(@class , ' topic/othermeta ')][@name='category']/@content"/> 
in a customization of topicpullImpl.xsl

I am seeing text value from the parent map
<map><topicmeta><publisher>
merged with attribute values from
<reference><prolog><metadata><othermeta>
from the $targetElement variable

Apologies if I am not explaining this very well.
I would appreciate any direction anyone might be able to provide on this as I am baffled.
Thanks in advance,
Ann
Radu
Posts: 9436
Joined: Fri Jul 09, 2004 5:18 pm

Re: Why is my topic metadata merging with my map metadata during preprocessing?

Post by Radu »

Hi,

The DITA 1.3 specs describes various cases in which metadata cascades from a topicref inside the topic and the publishing engine basically should obey the specs:

https://www.oxygenxml.com/dita/1.3/spec ... adata.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
ann.jensen
Posts: 316
Joined: Wed Jun 17, 2015 10:19 am

Re: Why is my topic metadata merging with my map metadata during preprocessing?

Post by ann.jensen »

Thank you so much, that helps a lot.
Regards,
Ann
Post Reply