Skip to main content
Inspiring
July 1, 2020
Question

Manage Attribute Expression selects too much

  • July 1, 2020
  • 1 reply
  • 1866 views

I am working in a structured file using FM19, version 15.0.6.956.

 

I am trying to add the ability to hide an element (shortdesc) for pdf output but everything in the dita file is being grabbed as well. Have I missed something in process here?

  1. In the Conditional Tags pod, I added a conditional tag for shortdesc.
  2. I then went to the "Manage Attribute Experssions" and created a new expression: shortdesc
  3. I applied the shortdescr conditional tag

However, when I hit apply, the condition is applied to everything in the file including a draft comment. The Conditional Tags pod indicates that the shortdesc element is tagged with the shortdesc tag but oddly, the draft-comment element is also tagged with both DITA-Comment AND shortdesc tag. None of the other text in the file appears to have any Conditional Tag applied. In the Show/Hide Conditional Text pod, if I hide the shortdesc, everything in the file is hidden except for the draft-comment.

 

I hope that someone can help me out with my process or recommend another way to "hide" an element.

 

Thanks.

 

 

This topic has been closed for replies.

1 reply

frameexpert
Community Expert
Community Expert
July 1, 2020

Try setting a value on the shortdesc element's outputclass attribute and change your expression to match that. See if it works then.

www.frameexpert.com
Inspiring
July 1, 2020

Thanks for your reply. In this case, I wanted the ability to hide ALL shortdesc elements in the pdf output so I really didn't want to add an outputclass to the hundreds of shortdesc elements. As a test, I did add an outputclass to the shortdesc and the same thing happened. Other thoughts?

frameexpert
Community Expert
Community Expert
July 1, 2020

I am not sure without seeing a document. You can send me one off list if you want: rick at frameexpert dot com

www.frameexpert.com