|
From: Lars H. <he...@se...> - 2008-05-14 13:39:06
|
Hi Darina,
> I have a problem in using the removeSubjectLocator(l) method - it just
> doesn't work for me ...
What does not work?
> I am copying a method to replace a subject locator of a topic with a new
> one - have no idea what I am doing wrong...
Possible problem: I believe that TM4J manages max. one subject locator
(since XTM 1.0 allows just one). So, if you have a topic with subject
locator "A" and you call your function with
replaceOldSubjectLocator(t, "B", "C");
the existing subject locator ("A") would not have been matched with
"B" and if you add "C", the locator "A" goes away since TM4J handles
just one locator. (I am not sure if TM4J overrides any existing
subject locator silently).
Maybe you can drop in [tinyTiM] (for testing purposes) as TMAPI
implementation and see if you get the expected results. tinyTiM
handles 0..n subject locators and is more TMAPI compatible than TM4J.
[tinyTiM] <http://sf.net/projects/tinytim>
Best regards,
Lars
--
Semagia
<http://www.semagia.com>
|