Home Forums DITA and XMetaL Discussion Purposely Excluded Conrefs Still Listed in Output Log as missing Reply To: Purposely Excluded Conrefs Still Listed in Output Log as missing

severin.foreman

Reply to: Purposely Excluded Conrefs Still Listed in Output Log as missing

We had this issue. It occurs when the conditional processing attribute value is set on the conref target instead of on the element that contains the conref attribute. The reason is that, during processing, the open toolkit filters content based on your conditional text settings before it resolves conrefs. To resolve the issue, set the product attribute value on the same element that has the conref.

=== The wrong way to do it ===
Topic A contains a paragraph that conrefs from Topic B.

  Topic A
 
   

 

The paragraph in Topic B has the product attirbute set and
a DITAVAL file excludes the content from the build.

  Topic B
 
   

Some text.

 

When the OT processes these files, the paragraph in topic B is removed before the conref is resolved. Thus, the conref is broken. The output will probably appear the way you want, but it makes your error logs much less useful, as you noted.

=== The right way to do it ===
Topic A contains a paragraph that conrefs from Topic B, but this time the paragraph in topic A is
removed from the topic before conrefs are resolved.

  Topic A
 
   

 


  Topic B
 
   

Some text.

 

Reply

Products
Downloads
Support