Page 1 of 1

having trouble with XML Catalog and xsl:import

Posted: Tue May 15, 2007 6:19 pm
by aehusted
I am trying to debug some complicated XSL and my first problem is getting the xsl:import to work correctly. I am working from files on a network server and the relative paths for importing need to get redirected.
I am new to both XSLT and oXygen, but I combed this forum and started by using the info in this post.
So far, I have a catalog that looks like this:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<system systemId="http://www.w3.org/2004/10/xml.xsd" uri="xml.xsd"/>
<uri name="file:rx_resources/stylesheets/assemblers/rx_Globals.xsl" uri="file:Volumes/192.168.2.68/rx_resources/stylesheets/assemblers/rx_Globals.xsl"/>
</catalog>
and I am trying to get this tag to work:

Code: Select all

<xsl:import href="file:rx_resources/stylesheets/assemblers/rx_Globals.xsl"/>
I am getting this message in the Catalogs tab:

SystemID: null
Description: Resolved URI: file:rx_resources/stylesheets/assemblers/rx_Globals.xsl file:/Users/alexh/Desktop/Volumes/192.168.2.68/rx_resources/stylesheets/assemblers/rx_Globals.xsl

This looks like the correct path, but I am still getting a "[Saxon6.5.5] failure reading file" error when try to validate the document. I assume that there is something simple I am missing here, but I can't figure out what it is.

Any advice would be greatly appreciated.

Alex

Posted: Wed May 16, 2007 4:02 pm
by sorin_ristache
Hello,

What is the full error message? Does the error message contain the path file:rx_resources/stylesheets/assemblers/rx_Globals.xsl? Are there other validation errors?


Regards,
Sorin

RE: having trouble with XML Catalog and xsl:import

Posted: Wed May 16, 2007 4:11 pm
by aehusted
Sorin,
I ended up figuring out late yesterday that one of my paths needed another / in the front. Now I can get down to the real debugging.
Thanks,
Alex