Get master file url through api

Post here questions and problems related to oXygen frameworks/document types.
Patrik
Posts: 229
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

Get master file url through api

Post by Patrik » Mon Mar 31, 2014 11:35 am

Hi,

I need to know the master file url from within my extension bundle but can't find a method returning it!?

Thanks and regards,

Patrik

Radu
Posts: 6325
Joined: Fri Jul 09, 2004 5:18 pm

Re: Get master file url through api

Post by Radu » Mon Mar 31, 2014 12:17 pm

Hi Patrik,

We do not have API for this.
How do you define that master file in Oxygen? Do you add certain XML documents in the special Master Files grouping folder in the Project view?
Or do you create a validation scenario for that XML which validates its master XML file?

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

Patrik
Posts: 229
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

Re: Get master file url through api

Post by Patrik » Mon Mar 31, 2014 12:28 pm

Hi Radu,

I'm adding a certain xml document to the Master Files folder - always a single one.

Background: My caching class needs to know the master file to cache the data of all includes files. With the cached data and access to it from schematron I can validate each xml file seperatley in a global context without having to validate the whole project (consisting of hundreds of files). Currently I'm assuming the master file has the same path as the project file (just with different file extension). I thought with the master file concept I could make this more flexible... - no real problem, though.

Regards,
Patrik

Radu
Posts: 6325
Joined: Fri Jul 09, 2004 5:18 pm

Re: Get master file url through api

Post by Radu » Mon Mar 31, 2014 2:39 pm

Hi Patrik,

Then we'll consider adding API for this in a future version (probably after 16.0 will be released).

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

Post Reply