managed recursive inclusion

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

managed recursive inclusion

"Meißner, Christian"

hallo guys,

during my work on a kind of type dictionary in xml format
some problems occured, that cannot be solved for know.

just imagine:

you specified an element id attribute or some global key in a xml schema defintion.
you have several documents (x,y,z) who include the same document (a) of the same type.
till now all things work and no duplicated ids / keys occure.

but what if we have another document (b) which includes all of them.
in the best case we get 4 duplicate ids, which means that document
was included multiple times.

the same problem is known in context of programming languages and there it is solved
in terms of defines or managed sources. it would be nice if an additional attribute of "include" would
prevent such multiple recursive includes.

something like: <xi:include multiplicity="singular" .... />

in case of "singular" a xml parser could just skip multiple inclusions.

it would be nice, if you consider a modification of the xinclude specification in terms of this aspect.

best regards,

Christian Meißner
Innovation Center Computer Assisted Surgery (ICCAS)
Working Group: Scientific Methods / Surgical Workflow