Linking two project (.xpr)

Post here questions and problems related to editing and publishing DITA content.
Sitrakar
Posts: 23
Joined: Tue Jan 24, 2023 5:40 am

Linking two project (.xpr)

Post by Sitrakar »

Hello,
I want to know if it's possible to link 2 separate, independent projects (different .xpr). By that, I mean I want to reference a page in the project one to a page in project two. The two projects are independent and build in two different folders. This is due to the fact that we have two different product to document.
Best regards
Sitraka
Radu
Posts: 8736
Joined: Fri Jul 09, 2004 5:18 pm

Re: Linking two project (.xpr)

Post by Radu »

Hi,
What XML vocabulary are you using for publishing? Do you publish using Oxygen's internal publishing capabilities or using your own stylesheets?
The easiest way to link between separate projects is to know at what web address each project will be published and just add absolute web links to those web addresses.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Sitrakar
Posts: 23
Joined: Tue Jan 24, 2023 5:40 am

Re: Linking two project (.xpr)

Post by Sitrakar »

Thanks Radu for the answer.
We are using Dita for the XML vocabulary and for the publishing we use Oxygen's internal publishing capabilities.
Best regards,
Sitraka
Radu
Posts: 8736
Joined: Fri Jul 09, 2004 5:18 pm

Re: Linking two project (.xpr)

Post by Radu »

Hi Sitraka,
You should consider my suggestion of using web links between the two projects.
The DITA standard also has some support for cross deliverable linking:
https://www.oxygenxml.com/dita/1.3/spec ... -maps.html
but this is not something supported out of the box when publishing so you would need to implement publishing customizations.
We have an end user who made cross deliverable linking work for DITA to WebHelp output using a custom plugin:
https://github.com/chrispy-snps/DITA-fi ... html-links
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Sitrakar
Posts: 23
Joined: Tue Jan 24, 2023 5:40 am

Re: Linking two project (.xpr)

Post by Sitrakar »

Thanks Radu for the answer.
I will try it
Best regards,
Sitraka
Post Reply