Problem with conditional exclusion

I am trying to use a .ditaval file to display conditional text:

<?xml version="1.0" encoding="UTF-8"?>
<val>
<prop att="audience" val="user" action="exclude"/>
</val>

In my topic, I have an element defined thusly:

<p audience="user">Only display this text for admin users</p>

When I do my build in debug mode, it seems to resolve ant.input.valfile correctly:

Setting ro project property: args.input.valfile -> C:\DITA_OTMSb\ant_scripts\users-only.ditaval

But the ouput HTML still includes the content I wish to exclude.

I have tried this in both OT 1.3.1 and 1.4 with no luck.

In the "DITA Open Toolkit User Guide" section on Conditional Processing, there is a step in the section "Adding Metadata to Elements" that says: "For audience or product, add an equivalent element to the prolog metadata." I don't understand what this means, but I added this to my <prolog><metadata>:

<audience type="user"/>

Any tips or suggestions welcome.

Thanks

Dave

I had a bug in my build file. I was using args.input.valfile instead of dita.input.valfile.

XML.org Focus Areas: BPEL | DITA | ebXML | IDtrust | OpenDocument | SAML | UBL | UDDI
OASIS sites: OASIS | Cover Pages | XML.org | AMQP | CGM Open | eGov | Emergency | IDtrust | LegalXML | Open CSA | OSLC | WS-I