Frank Schoenheit, Sun Microsystems Germany wrote:
> Hi,
>
> do we have an API for document-wide (or "context-wide") unique string
> identifiers?
>
> That is, I think there are ongoing implementations (or plans, at least)
> to use xml:id in ODF documents more widely. This implies that at
> runtime, we need a mechanism to manage such IDs, which need to be unique
> in the whole document.
>
> I'd expect something like
>
> XStringIdentifierManager
> {
> string createUniqueID();
> void revokeID( [in] string ID );
> }
>
> Do we have something like this? Is anybody aware of ongoing
> implementations in this direction?
>
> Thanks & Ciao
> Frank
hi Frank,
guess i should have replied to this mail instead...
in short, there is a xml:id registry and some abstract base classes in
sfx2, and a interface com.sun.star.rdf.XMetadatatable for entities that
may have xml:id.
see the following announcements from the interface-announce list for details:
Title: new: ::sfx2::Metadatable, ::sfx2::DocumentMetadataAccess
Title: new: RDF API: module css.rdf
and for even more details, see the source ;)
michael
--
"There's at least one foolproof way to solve NP-complete problems in
polynomial time. The method is this: first guess a solution at random,
say by measuring electron spins. Then, if the solution is wrong,
kill yourself! If you accept the many-worlds interpretation of
quantum mechanics, then there's certainly some branch of the
wavefunction where you guessed right, and that's the only branch
where you're around to ask whether you guessed right!
It's a wonder more people don't try this." -- Scott Aaronson
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]