associating linked data to entire project rather to each doc

Oxygen general issues.
Geoff16W
Posts: 8
Joined: Fri Mar 04, 2011 3:28 pm

associating linked data to entire project rather to each doc

Post by Geoff16W »

One feature I really like in oxygen is the ability to create a list of references that then appear as suggestions whenever you are using a attribute like "ref". So for example, when I write <name ref="">Bob</name>. Oxygen gives me a list of possible pre-defined references (e.g. #Bob)

However, I currently give Oxygen this list by linking to a separate xml document in each file using xinclude. But I know have over 500 files and I would prefer to just associate this list of references with the whole project once rather than in every file.

Further, I eventually want to use an RDF document to contain the references. The ideal method then would be able to have Oxgyen give me a drop down list of predefined set of URI's (e.g. http://mydomain.org/people/bob). Is it possible to link my documents/project in such a way that it is associated with an entire set of RDF files? Perhaps telling it to look for all references in http://mydomain.org/people?

Thanks for any answer you can provide.
Radu
Posts: 9445
Joined: Fri Jul 09, 2004 5:18 pm

Re: associating linked data to entire project rather to each

Post by Radu »

Hi Jeffrey,

What type of XML vocabulary are you editing? Is it TEI?

We have enough Java API which would allow you to implement something called ro.sync.contentcompletion.xml.SchemaManagerFilter, a filter implementation which can remove or add values for certain attributes. So if you have a Java developer, I can give you more details about this approach.

Another approach would be to use our form-control support if you work in the Author visual editing mode.

For example if you edit TEI documents you could add in the CSS document:

OXYGEN_INSTALL_DIR\frameworks\tei\xml\tei\css\tei_oxygen.css

a CSS selector like:

Code: Select all

name {
content:"REF:" oxy_combobox(edit, "@ref",
editable, true,
values, oxy_xpath("string-join(doc('http://mydomain.org/people/people.xml')//@id, ',')"));
}
More about our custom CSS functions like oxy_combobox and oxy_xpath can be read here:

http://www.oxygenxml.com/doc/ug-oxygen/ ... tions.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply