id -> ref target linking to other elements
-
- Posts: 3
- Joined: Mon Jan 20, 2014 10:44 am
id -> ref target linking to other elements
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?
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?
-
- 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
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
-
- Posts: 3
- Joined: Mon Jan 20, 2014 10:44 am
Re: id -> ref target linking to other elements
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
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
-
- 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
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
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service