Page 1 of 1

cvc-elt.1.a: Cannot find the declaration of element 'val'

Posted: Thu Apr 02, 2015 3:49 am
by wingman1985
Here is my problem with using DITA-OT.

I am just starting to use the "Filtering" feature when I encounter the following issue:
Here is how I run the DITA-OT:

java -jar lib/dost.jar /i:/conditional-text.ditamap /filter:plumbers.ditaval /outdir:. /transtype:pdf2


And here is the result:
BUILD FAILED
D:\DITA-OT\build.xml:44: The following error occurred while executing this line:
D:\DITA-OT\plugins\org.dita.base\build_preprocess.xml:24: Failed to run pipeline: [DOTJ012F][FATAL] Failed to parse

the input file 'D:\DITA-OT\conditional-text.ditamap'. The XML parser reported the following error: : conditional-

text.ditamap Line 2:cvc-elt.1.a: Cannot find the declaration of element 'val'.

Here is the content of my conditional-text.ditamap

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


Can anyone tell me how to fix this?Thanks!

BTW: I am using Notepad++ as my editor and I prefer to use it to solve the above issue.

Re: cvc-elt.1.a: Cannot find the declaration of element 'va

Posted: Thu Apr 02, 2015 9:22 am
by Radu
Hi,

You should consider registering on the Yahoo Groups DITA Users List:

https://groups.yahoo.com/neo/groups/dita-users/info

It is a very good place where to ask DITA questions which are not related with Oxygen.

You seem to have set the filter content inside the DITA Map.
The DITA Map must contain references to DITA topics. Each reference can be profiled so that when the DITAVAL filter is applied only a certain part of the DITA Map is published.
Only your "plumbers.ditaval" must contain the filter content.

You can find a video demonstration about using Oxygen for DITA profiling here:

http://www.oxygenxml.com/demo/DITA_Profiling.html

Regards,
Radu