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

Post here questions and problems related to editing and publishing DITA content.
protl
Posts: 13
Joined: Mon Dec 18, 2017 10:52 pm

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

Post 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"/>
Radu
Posts: 9046
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
drmacro
Posts: 10
Joined: Fri Jul 16, 2004 11:25 pm

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

Post 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
----
Eliot Kimber
Innodata Isogen
Radu
Posts: 9046
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply