Re: [xsl] Catalog file to use local version of dtd

Subject: Re: [xsl] Catalog file to use local version of dtd
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 17 Nov 2008 13:42:35 -0500
At 2008-11-17 18:33 +0000, Mark wrote:
I'm using Saxon 9.0.0.6J to process xslt 2 stylesheets from the command line.
...
<!-- ADDITION TO COMMAND LINE -->
-Dxml.catalog.files=D:\Content\MTG\xml\catalog.xml -Dxml.catalog.verbosity=1
...
<!-- EXISTING COMMAND LINE -->
>-o D:\Content\MTG\html\mtg_00.htm D:\Content\MTG\xml\mtg.xml mtg.xsl mak_ID=mtg path=D:\Content\MTG\html\ name_title="Master Tax Guide"
...
I get the error:


Recoverable error on line 57 of file:/D:/Content/MTG/mtg.xsl:
  FODC0005: java.net.UnknownHostException: nastntx95001

for everytime the document() function trys to access one of these
files.
...
Can anybody spot where I'm going wrong?

Wherever you have:


argument=D:\path\here

... try:

argument=file:/D:/path/here

I'm not sure when the change happened, but I've been having to covert my old programs that used to work without the "file:/" prefix to have it in order to work. It was either a change in Saxon or a change in Java ... I'm not sure which and perhaps Mike can comment.

This extends also to the URI in a stylesheet association ... where this used to work:

<?xml-stylesheet type="text/xsl" href="q:/docbook/mydocbook.xsl"?>

... I now need:

<?xml-stylesheet type="text/xsl" href="file:/q:/docbook/mydocbook.xsl"?>

I hope this helps.

. . . . . . . . . Ken

--
Upcoming XSLT/XSL-FO, UBL and code list hands-on training classes:
:  Sydney, AU 2009-01/02; Brussels, BE 2009-03; Prague, CZ 2009-03
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video sample lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg
Video course overview:  http://www.youtube.com/watch?v=VTiodiij6gE
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Current Thread