Re: osfd behaviour

Subject: Re: osfd behaviour
From: Brandon Ibach <bibach@xxxxxxxxxxxxxx>
Date: Fri, 21 Jul 2000 14:47:53 -0500
Quoting Holger Klawitter <holger@xxxxxxxxxxxx>:
> the following dsssl script should write its content to stderr, shouldn't
> it? However what it does is writing the output the file with name
> given from stdin. (openjade 1.3, Linux 2.2.13, sgml backend)
> 
> ---------SNIP
> <!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN"[
> <!entity stderr SYSTEM "<osfd>2">
> ]>
> (declare-flow-object-class entity
>    "UNREGISTERED::James Clark//Flow Object Class::entity")
> (default (make entity system-id: "&stderr;" (literal "Hello World")))
> ---------SNIP
> 
> What am I getting wrong?
> 
   Try:  <!entity stderr "<osfd>2">   at the top, instead.  By having
SYSTEM in there, you're telling Jade that <osfd>2 is the system
identifier from which to read the replacement text for &stderr;.  That
replacement text (the file name you type after starting Jade) then
becomes the system identifier to which Jade writes its output.  By
removing SYSTEM, "<osfd>2" now becomes the replacement text, and is
used as the system identifier to which output should be sent.

-Brandon :)


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread