Page 1 of 1
Generating project file from maven
Posted: Fri Oct 23, 2015 11:05 am
by cmarchand
Hello,
our XSL/XQuery projects are organized as maven projects, to be able to perform continuous integration on unit tests.
I want to be able to generate the Oxygen project file from a maven command, like a
Is there available documentation on project files ?
Does the schema evolves through Oxygen various releases ?
Best regards,
Christophe
Re: Generating project file from maven
Posted: Fri Oct 23, 2015 2:23 pm
by Radu
Hi Christophe,
You can find a schema for our project file in:
OXYGEN_INSTALL_DIR/frameworks/oxygen/project.xsd
We do not have additional documentation for it but you can create one in Oxygen with a couple of added folders and look at its structure.
It's in our best interest to keep our project format backward compatible, otherwise users with older projects would have trouble migrating to newer ones.
Regards,
Radu
Re: Generating project file from maven
Posted: Fri Oct 23, 2015 3:03 pm
by cmarchand
Found, thanks a lot.
Any way to define a catalog in the project file ?
Best regards,
Christophe
Re: Generating project file from maven
Posted: Fri Oct 23, 2015 3:17 pm
by Radu
Hi Christophe,
You cannot embed an XML catalog in a project ".xpr". But you could save in it a reference to an XML catalog.
The project XPR configuration file can contain options which are saved at project level.
For example in the Preferences->"XML / XML Catalog" page you can pass the page to project level and add in it a reference to an extra XML catalog like:
${pdu}/catalog.xml
Then you can open the XPR as an XML (drag it from the Windows Explorer and drop it in Oxygen) and see how that saved information looks like.
Regards,
Radu
Re: Generating project file from maven
Posted: Fri Oct 23, 2015 3:54 pm
by cmarchand
Ok, that's work fine !
Now, I have to write a maven plugin to generate the catalog each time the pom dependencies change.
Does oxygen supports the rewriteSystem for catalog ?
Thanks in advance,
Christophe
Re: Generating project file from maven
Posted: Mon Oct 26, 2015 10:23 am
by Radu
Hi Christophe,
About this question:
Does oxygen supports the rewriteSystem for catalog ?
Both Oxygen and the XSLT processor (usually Saxon 9) should support the entire XML catalog 1.1 specification.
Regards,
Radu
Re: Generating project file from maven
Posted: Wed Oct 28, 2015 3:02 pm
by cmarchand
It appears that oXygen 17.1 supports rewriteSystem, but not oXygen 15.2. Is that correct ?
Best,
Christophe
Re: Generating project file from maven
Posted: Wed Oct 28, 2015 3:28 pm
by Radu
Hi Christophe,
Both Oxygen 17 and 15.2 should support it as well.Support for XML catalogs has been present in Oxygen almost since the inception of the application, more than 10 years ago.
If you have a clear situation in which it does not seem to work, maybe you can give us more details and we can take a look at it.
Regards,
Radu
Re: Generating project file from maven
Posted: Wed Oct 28, 2015 3:34 pm
by cmarchand
Ok. I probably make mistakes between the two environments.
If I have again the problem, I will report it with a test-case.
Thanks,
Christophe