id -> ref target linking to other elements

cis
Posts: 3
Joined: Mon Jan 20, 2014 10:44 am

id -> ref target linking to other elements

Post by cis »

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: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: id -> ref target linking to other elements

Post by sorin_ristache »

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
Joined: Mon Jan 20, 2014 10:44 am

Re: id -> ref target linking to other elements

Post by cis »

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: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: id -> ref target linking to other elements

Post by sorin_ristache »

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
Post Reply