Page 1 of 1

How to create a single project in oxygen for all the differe

Posted: Fri Mar 07, 2014 7:40 am
by anmol
Hi,

I have different pdf's xml sources in different directories. So, what i want is to create a single project that has source xmls of all the different pdfs in a single project. It would help me to quickly move between document's sources and also to set external links between two pdfs and also internal links in between to xml file of the same pdfs. My directory structure is as follows:

Code: Select all


DirA:
SubDirA:
Book.xml(It is the top level file and includes all the chapters)
Chap_1_A.xml
Chap_2_A.xml
And the similar structure for DirB. And i want both of them to be included in a single project. So, i can work on both of them simultaneously.

Thanks,
Anmol

Re: How to create a single project in oxygen for all the dif

Posted: Fri Mar 07, 2014 3:48 pm
by Radu
Hi Anmol,

I'm not sure I fully understand what you want.
You can use Oxygen's Project view (right click inside the Project view and choose Add folder) to add all your top level folders to the project and thus be able to quickly open resources from both your folder hierarchies.
If I have not understood precisely what you want maybe you could give us more details.

Regards,
Radu

Re: How to create a single project in oxygen for all the dif

Posted: Tue Mar 11, 2014 6:47 am
by anmol
Hi Radu,

Thanks for the reply. I will try it out. The problem that i faced is during linking between xmls of a single pdf(using link:linkend) and linking between different pdfs(using olink). So, for linking you need to add the target id. So, currently if the target id is not in the same xml, it shows validation error of incorrect target id. I don't want that. Also, when i do links within the same xml, oxygen has this nice feature of auto-showing the list of ids from which i can select the respective target id. This doesn't happen in the former case that I just mentioned above.

Thanks,
Anmol

Re: How to create a single project in oxygen for all the dif

Posted: Tue Mar 11, 2014 9:27 am
by Radu
Hi Anmol,

Docbook has this concept of olinks which can be used to link between different publications:

http://www.sagehill.net/docbookxsl/Olinking.html

We also have a small topic in our user manual about this:

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

You should consider registering on the Docbook Apps Users List:

http://www.docbook.org/help

because it is a very good place where to ask specific Docbook related issues.

Rgards,
Radu

Re: How to create a single project in oxygen for all the dif

Posted: Tue Mar 11, 2014 1:12 pm
by anmol
Hi,

I have already registered to docbook-apps. And i have used olink earlier correctly. Maybe i am not able to express my question candidly. :(

The link that you sent me earlier regarding oxygen help for olink:
http://www.oxygenxml.com/doc/ug-oxygen/ ... book5.html

The gui that you see has all the list of chapters and their sections mentioned in the list. I can't see that in my project which becomes very difficult to work on it then.

Re: How to create a single project in oxygen for all the dif

Posted: Tue Mar 11, 2014 6:12 pm
by Radu
Hi Anmol,

Sorry but I do not understand. The dialog used to insert Olinks works by specifying a target database document which lists all available target IDs. Do you want more details about how to construct this file?

Regards,
Radu

Re: How to create a single project in oxygen for all the dif

Posted: Thu Mar 20, 2014 1:09 pm
by anmol
Hi,
i managed to get the list of sections in the Olink gui of the oxygen tool. i have another doubt,
if i set an olink in oxygen, then is it possible to jump to the another document section(target section in the olink) directly by clicking on olink tag from the source document(i.e. xml in which olink tag is written) from the author mode of the oxygen xml editor tool(like the way it works for internal links using linkend). I mean will it open the target document xml automatically on clicking it without generating the pdf first.
Thanks
Anmol

Re: How to create a single project in oxygen for all the dif

Posted: Thu Mar 20, 2014 5:09 pm
by Radu
Hi Anmol,

Sorry, but clicking the olink in Oxygen to open the target will not work directly, you will need to generate the PDF for this.
An olink is an indirected reference like:

Code: Select all

<olink targetdoc="MailUserGuide" targetptr="src_chapter">Link Text</olink>
and Oxygen does not have enough information to know to what element in a target XML document the link points to, even in the targetset file there is no such information, it contains only information about the published output resources.

Regards,
Radu