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

ljp
Posts: 3
Joined: Tue May 05, 2009 11:37 pm

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

Post 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?
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

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

Post 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
Mihaela Calotescu
http://www.oxygenxml.com
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

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

Post 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
Mihaela Calotescu
http://www.oxygenxml.com
ljp
Posts: 3
Joined: Tue May 05, 2009 11:37 pm

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

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