having trouble with XML Catalog and xsl:import

Here should go questions about transforming XML with XSLT and FOP.
aehusted
Posts: 2
Joined: Tue May 15, 2007 6:01 pm
Location: South Jersey

having trouble with XML Catalog and xsl:import

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
aehusted
Posts: 2
Joined: Tue May 15, 2007 6:01 pm
Location: South Jersey

RE: having trouble with XML Catalog and xsl:import

Post 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
Post Reply