Page 1 of 1

Autocompletion of xref:s in multipart docbooks when using XInclude?

Posted: Mon Jan 02, 2012 4:24 pm
by ljp
The auto-completion of external references work well within the same document (all defined Id:s within the same document shows up in the href attribute when inserting a reference).

However for a large document in several parts (using XInclude) I can't find a way to get auto-completion for Id in other files in the project.

Is that possible?

Re: Autocompletion of xref:s in multipart docbooks when using XInclude?

Posted: Tue Jan 03, 2012 12:49 pm
by mihaela
Hi,

From what I understand you want to insert an xref in your document and the content completion list of an xref attribute contains only the IDs declared in the document (not in the XIncluded content).
What is the name of this attribute?
You said that
all defined Id:s within the same document shows up in the href attribute when inserting a reference
Are you actually referring to the linkend attribute of the xref element?

We tried to reproduce this problem but the list of possible IDs for linkend attribute contains also the IDs declared in the content referred with XInclude).

Can you provide us some samples that reproduce your problem?

Thank you,
Mihaela

Re: Autocompletion of xref:s in multipart docbooks when using XInclude?

Posted: Wed Jan 04, 2012 1:32 pm
by mihaela
Hi,

If you want all the IDs defined into a document master to be presented in the content completion list of another document, you can set a validation scenario for your document and specify the URL of the master document as the URL of the file to validate.

Here is a link from our online documentation about how you can create a validation sceanrio:
http://www.oxygenxml.com/doc/ug-editor/ ... nario.html

Regards,
Mihaela

Re: Autocompletion of xref:s in multipart docbooks when using XInclude?

Posted: Wed Jan 04, 2012 2:02 pm
by ljp
Thanks. That was exactly what I was after!

I have a project with a master document and multiple chapters and appendixes in different files (using XInclude). When inserting xref:s to sections, tables, figures in other files I wanted an easy way to get autocompletion for id:s.

Pointing the project validation scenario to the master file did exactly that.

(But it wasn't obvious to me that this was the way to do it - I assumed that the autocompletion worked on the project files.)

Thanks for good support!