Skip to main content
Inspiring
Jul 1, 2020 6:39 PM UTC
Question

Manage Attribute Expression selects too much

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 is closed to new replies. Start a new post to keep the conversation going.

20 replies

frameexpert
Community Expert
Community Expert
Jul 1, 2020 7:07 PM UTC

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

Translate
www.frameexpert.com
Inspiring
Jul 1, 2020 7:15 PM UTC

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?

Translate
frameexpert
Community Expert
Community Expert
Jul 1, 2020 7:25 PM UTC

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

Translate
www.frameexpert.com