Closed GoogleCodeExporter closed 8 years ago
The additional item identifier *is necessary* since XTM 2.0 mandates a topic
identifier for each topic <topic id="bla"/>.
If you serialize the topic map again (with the same document locator) you
shouldn't
see more item identifiers since the writer will reuse existing item identifiers
to
avoid the generation of additional item identifiers.
The XTM 2.1 writer may rescue you, though (will be added in the next couple of
days).
Original comment by lars.he...@gmail.com
on 31 Mar 2010 at 1:10
(the *reader* does not create additional item identifiers, the writer does)
Original comment by lars.he...@gmail.com
on 31 Mar 2010 at 1:23
But why can't I see them in the written xtm file?
Only after writing after rereading the toipic map an item identifier is
serialized.
The following is the file created by this test:
<topicMap xmlns="http://www.topicmaps.org/xtm/" version="2.0"><topic id="id-
2"><subjectIdentifier href="http://psi.test.de/testtopic1"/></topic></topicMap
Original comment by h.niederhausen@googlemail.com
on 31 Mar 2010 at 1:29
"id-2" is the item identifier. I guess you're looking for "itemIdentity" right?
The topic id is converted into an item identifier during deserialization.
Original comment by lars.he...@gmail.com
on 31 Mar 2010 at 1:36
I see.. obviously a misunderstanding on my site. Thanks for the explanation.
Original comment by h.niederhausen@googlemail.com
on 31 Mar 2010 at 1:40
Okay, np. I close this issue
Original comment by lars.he...@gmail.com
on 31 Mar 2010 at 1:41
Original issue reported on code.google.com by
h.niederhausen@googlemail.com
on 31 Mar 2010 at 1:01