I am adding a package to the current version of the translator in svn ...
I dont call the translator directly from the editor anymore -- instead
i use reflection calls / and load it via a custom classloader -- to do
this i add a standard interface of functions to any library integrated
to the editor ...
it will be under org.bungeni.plugins.translator.*
Ashok
--
++++ Ashok Hariharan ++++
Much better i must say ... [1]
I am adding the new integration in today -- and then testing with a
more elaborate document to see how it holds up.
[1] - example error messages returned by the translator --
There was a problem during the validation of the document
In the section with type: subdivision, Having ID: motion1, Starting
with the words: Adoption of 35TH CPA (Africa Region) ReportMr Acheka
Included in the section with type: noticesOfMotion, Having ID: allmotions1
The problem is: The additional info 'name' is mandatory for the
element 'subdivision'
There was a problem during the validation of the document
In the section with type: subdivision, Having ID: motion2, Starting
with the words: Adoption of Report of First and Second Sessions of Pan
African ParliamentMr. NoK
Included in the section with type: noticesOfMotion, Having ID: allmotions1
The problem is: The additional info 'name' is mandatory for the
element 'subdivision'
There are 2 related problems here :
a -- missing metadata
- e.g. publication date -- or incomplete URI -- for these you can
just display an error message saying 'publication date' is not set.
there is nothing to point to within the original document.
b -- missing reference
-e.g. member of parliament reference is missing e.g. if there is a
speech section type without any member of parliament (from / by)
information set - it should generate an error and point to the section
that is the culprit.
Ashok
> In the meanwhile I'm working to fix the problem of the messages.
Hi Luca,
if you are fixing the problem of the messages, please checkout the
project afresh, as I have made some updates.
Ashok