XSpec & catalogs
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 8
- Joined: Fri Oct 23, 2015 10:44 am
XSpec & catalogs
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
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
-
- Posts: 96
- Joined: Wed Feb 09, 2005 8:57 am
Re: XSpec & catalogs
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:
So if the tested xsl have <xsl:output doctype-system="http://...">, the URL isn't resolved with the catalog.
Code: Select all
[xslt] Processing ...-result.xml to ...-result.html
[xslt] Loading stylesheet [Oxygen]\frameworks\xspec\src\reporter\format-xspec-report-oxygen.xsl
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: XSpec & catalogs
Hi,
One way around this would be to declare a custom editor variable for your catalog entry in Options > Preferences, Custom Editor Variables You can then use this custom editor variable (${myCatalog}) in multiple locations (XML Catalog, scenarios, etc).
Regards,
Adrian
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: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.
There is no property or editor variable that can be used obtain the configured XML catalogs.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 ?
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
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: XSpec & catalogs
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service