Skip to main content
Wanda Jane
Inspiring
August 5, 2020
Answered

Ditaval not filtering nested topics

  • August 5, 2020
  • 2 replies
  • 406 views

I have a ditamap with several nested topics describing different products. When I run my ditaval, it filters correctly at the root map level and inside of topics but it does not filter nested topics.

I've tried rejigging the ditaval file to both exclude all but my desired property or only include my desired property. Neither works.

Help, please.

 

Wanda

    This topic has been closed for replies.
    Correct answer Wanda Jane

    The problem turned out to be multiple values in the filtering attribute.

    I have discovered that the issue is that there are multiple values in the attributes where the ditaval was not filtering. I added an entry in a test ditaval that included multiple value props and that filtered correctly.

     

    So this worked:

     

    <val>

        <prop att="props" val="OGC" action="exclude"/>

        <prop att="props" val="OGEP" action="include"/>

        <prop att="props" val="OGEXO" action="exclude"/>

        <prop att="props" val="OGC OGEXO" action="exclude"/>

    </val>

     

    The alternative was to create duplicate topics and assign a single filtering value.

     

    Wanda

    2 replies

    Wanda Jane
    Wanda JaneAuthorCorrect answer
    Inspiring
    August 14, 2020

    The problem turned out to be multiple values in the filtering attribute.

    I have discovered that the issue is that there are multiple values in the attributes where the ditaval was not filtering. I added an entry in a test ditaval that included multiple value props and that filtered correctly.

     

    So this worked:

     

    <val>

        <prop att="props" val="OGC" action="exclude"/>

        <prop att="props" val="OGEP" action="include"/>

        <prop att="props" val="OGEXO" action="exclude"/>

        <prop att="props" val="OGC OGEXO" action="exclude"/>

    </val>

     

    The alternative was to create duplicate topics and assign a single filtering value.

     

    Wanda

    Known Participant
    July 23, 2024

    Does this mean that it's not enough to use a filtering value of "exclude" - that you also need a filtering value to "include"? THis seems pointless to me. I would assume that it's enough to flag certain elements to exclude (and anything unflagged is included by default)

    Adobe Employee
    August 6, 2020

    Hi Wanda

     

    Can you share a sample structure of the ditamap or possibly mail us so we can look into it.

     

    Thanks

    Amitoj Singh

    Email: amisingh@adobe.com