Page 1 of 1

can I use wildcard in "val" attribute in DITAVAL file?

Posted: Tue Mar 13, 2018 6:10 pm
by protl
In my DITAVAL file, I want to add a statement that excludes all content with a specific attribute ("product"), and then add include statements to include content marked with specific values for that attribute. I tried using a wildcard in the "val" attribute, but it did not seem to work. Does anyone know if wildcards are supported in the "val" attribute? For example:

A GENERAL EXCLUDE STATEMENT:
<prop att="product" action="exclude"/>

FOLLOWED BY A WILDCARD INCLUDE STATEMENT:
<prop att="product" val="not*" action="include"/>

AND THEN A SPECIFIC INCLUDE STATEMENT:
<prop att="product" val="product1" action="include"/>

Re: can I use wildcard in "val" attribute in DITAVAL file?

Posted: Wed Mar 14, 2018 11:03 am
by Radu
Hi,

The DITA standard does not support wildcards in DITAVAL filters.
I posted a link to your comment on the DITA standard comments list:

https://lists.oasis-open.org/archives/d ... 00002.html

Who knows, maybe they might be interested in adding such a feature in a future DITA standard release.

Regards,
Radu

Re: can I use wildcard in "val" attribute in DITAVAL file?

Posted: Tue May 08, 2018 7:07 pm
by drmacro
Note that you can get the effect of wildcards by using a subject scheme to provide a common ancestor type over all the specific values and then use the common type value in the DITAVAL.

Not as convenient as "not*" but it will work.

If you use a subject scheme to do the initial definition and ongoing maintenance of all your profiling values then it becomes more convenient to use it in this way as well.

Cheers,

Eliot

Re: can I use wildcard in "val" attribute in DITAVAL file?

Posted: Wed May 09, 2018 7:45 am
by Radu
Hi,

Right, for anybody interested we have an example in the user's guide about using Subject Scheme maps both for imposing controlled attribute values and for filtering:
Regards,
Radu