id -> ref target linking to other elements

cis
Posts: 3

id -> ref target linking to other elements

Wed Feb 26, 2014 10:06 am

So, I edit a TEI document in Oxygen and one of the most usefull features is the small bar at the very right, right of the scroll bar. Clicking into an xml:id of an element of every kind will show all target ref elements linking to this ID.

But: For other elements, such as <persName ref="xml:id"> it doesn't seem to work and in an other non TEI project in which I also use XPointers it doesn't work at all.

Is there a way to achieve this: i.e. that all xml:ids are linked to all XPointers linking to this id, regardless in which element or attribute an xpointer is?
sorin_ristache
Posts: 4144

Re: id -> ref target linking to other elements

Thu Feb 27, 2014 11:54 am

Hello,

An xml:id value should be linked to all XPointers with that id value by highlighting the xml:id value and all references to that value on the right side bar. The ref attribute of persName should allow a Search Declaration action for finding the element with that ref value. This will also highlight all the references on the right side bar. We will implement that in a future version.

What XPointer values did you try in other non TEI projects?


Regards,
Sorin
cis
Posts: 3

Re: id -> ref target linking to other elements

Thu Feb 27, 2014 5:38 pm

In my projet I have "collections" with an xml:id like "c023".

Other elements refer to them like ..id_of_collection="#c023".

But Oxygen can't find these references, neither in the bar on the right nor per Right click -> managa IDs -> find references
sorin_ristache
Posts: 4144

Re: id -> ref target linking to other elements

Thu Feb 27, 2014 6:10 pm

What are the types of the two attributes: the one with the xml:id value and the one with the reference to the ID value? What type of XML document is that? Does the XML file have an associated schema? Is it one of the built-in Oxygen document types?

Please note that the convention of referencing the ID value with an attribute like reference_attr=="#c023" (using a # character in the attribute value that points to the ID value) is specific for TEI documents. Usually the schema of a document type forces the exact same value in both the attribute with the ID value and the attribute with the reference to the ID value.

Please give a more detailed example for the "collections" case (id_of_collection="#c023", etc).


Thank you,
Sorin

Return to “TEI”

Who is online

Users browsing this forum: No registered users and 0 guests