XSpec & catalogs

Having trouble installing Oxygen? Got a bug to report? Post it all here.
cmarchand
Posts: 8
Joined: Fri Oct 23, 2015 10:44 am

XSpec & catalogs

Post by cmarchand »

Hello,

I have defined a catalog entry in preferences : ${pdu}/catalog.xml

In my project, XSL edition and execution works perfectly.

But when I try to run XSpec in the project, the XSpec engine is not aware of the catalog. As far as XSL processor in frameworks/xspec/build.xml is saxon, it is not a problem to patch the build.xml to specify the catalog to saxon.

But :
where I can get the computed catalog from preferences, with the ${oxygen-variables} resolved ? Is there a property, a system property or anything else I could use to initialize the XSpec run ?

Thanks in advance,
Christophe
HomeGoods
Posts: 96
Joined: Wed Feb 09, 2005 8:57 am

Re: XSpec & catalogs

Post by HomeGoods »

I've a similar issue. I have saxon.custom.options=-catalog:http://... specified in the transformation scenario and I think it is working at the first stage ("[xslt] Processing ....xspec to ....xsl") . But it doesn't seem to take effect at this stage:

Code: Select all

[xslt] Processing ...-result.xml to ...-result.html
[xslt] Loading stylesheet [Oxygen]\frameworks\xspec\src\reporter\format-xspec-report-oxygen.xsl
So if the tested xsl have <xsl:output doctype-system="http://...">, the URL isn't resolved with the catalog.
HomeGoods
Posts: 96
Joined: Wed Feb 09, 2005 8:57 am

Re: XSpec & catalogs

Post by HomeGoods »

HomeGoods wrote:I think it is working at the first stage ("[xslt] Processing ....xspec to ....xsl") .
Uh, nope. I meant the second stage ("[java] ...").
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: XSpec & catalogs

Post by adrian »

Hi,
cmarchand wrote:I have defined a catalog entry in preferences : ${pdu}/catalog.xml

In my project, XSL edition and execution works perfectly.

But when I try to run XSpec in the project, the XSpec engine is not aware of the catalog. As far as XSL processor in frameworks/xspec/build.xml is saxon, it is not a problem to patch the build.xml to specify the catalog to saxon.
I'm afraid that's a bug, the catalogs are not being passed to the XSpec ANT transformation. I've logged an issue for this.
cmarchand wrote:But :
where I can get the computed catalog from preferences, with the ${oxygen-variables} resolved ? Is there a property, a system property or anything else I could use to initialize the XSpec run ?
There is no property or editor variable that can be used obtain the configured XML catalogs.
One way around this would be to declare a custom editor variable for your catalog entry in Options > Preferences, Custom Editor Variables

Code: Select all

myCatalog = ${pdu}/catalog.xml
You can then use this custom editor variable (${myCatalog}) in multiple locations (XML Catalog, scenarios, etc).

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Radu
Posts: 9046
Joined: Fri Jul 09, 2004 5:18 pm

Re: XSpec & catalogs

Post by Radu »

Hi,

Just to update this thread, Oxygen 19.0 has two ways in which you can make XML catalogs work with XSpec:

https://www.oxygenxml.com/doc/versions/ ... sformation

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