Use of XML Catalog Files for XProc / Calabash

Having trouble installing Oxygen? Got a bug to report? Post it all here.
fsteimke
Posts: 80
Joined: Tue Jan 01, 2013 3:19 pm

Use of XML Catalog Files for XProc / Calabash

Post by fsteimke »

Dear Forum,
i have an Issue with an Oxygen Projekt which uses a XProc Transformation Scenario.
It did work with Oxygen XML Editor Version 23 (with Windows 10). Recently i switched to Oxygen 24 and now Version 25.1. The Transformation Scenario fails in both Versions. The Reason is that XSL Stylesheets, referenced in p:xslt Steps, cant be found. Behind the scenes this seems to be an issue with a xml catalog file, which is defined in the Project settings.

One of my p:xslt Steps looks like this:

Code: Select all

<p:xslt>
  <p:input port="stylesheet">
     <p:document href="http://www.xoev.de/db2odf/minimal-docbook.xsl"/>
  </p:input>
   ...
 </p:xslt>
The Transformation Scenario fails with Error Message

Code: Select all

err:XD0011 : Could not read: http://www.xoev.de/db2odf/minimal-docbook.xsl  ... 404 Not Found for: https://www.xoev.de/db2odf/minimal-docbook.xsl
The URL for the Stylesheet is defined in a catalog file:

Code: Select all

 <uri name="http://www.xoev.de/db2odf/minimal-docbook.xsl"
      uri="xsl/db2odf/minimal-docbook.xsl"/>
In order to check the catalog file, i made a temporary XSL file which includes the given URL:

Code: Select all

<xsl:include href="http://www.xoev.de/db2odf/minimal-docbook.xsl"/>
and it did resolve the URL as expected (the XSL File minimal-docbook.xsl is included).

So i think that the XML Catalog file is recognized at least for XSL Stylesheets, and is correct (otherwise xsl:include would not work), but it is not recognized within XProc / Calabash.

Thanks in advance,
Frank Steimke
Mircea
Posts: 131
Joined: Tue Mar 25, 2003 11:21 am

Re: Use of XML Catalog Files for XProc / Calabash

Post by Mircea »

Hello Frank,

Please make sure the resource specified by the catalog file is correctly placed relative by the catalog's position in the file system.
Open the catalog.xml file for editing in Oxygen, and use the "Open file at cursor" action, either by pressing CTRL+Enter or CTRL+Click on the resource from the catalog.
Alo make sure the catalog file file path is correctly added for XProc Editor in "Options/Prefereces/Document Type Association/XProc/Catalogs".

We simulated the same situation on our side and works without problems.

Regards,
Mircea.
Mircea Enachescu
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply