RE: Doctype problems

Subject: RE: Doctype problems
From: Pieter Rijken <pieter.rijken@xxxxxx>
Date: Fri, 16 Jul 1999 14:44:41 +0200
Hi Reyes,

> 
> Hello again
> 
> First thanks for the solution with "Copy a SGML structure and datas"
> 
> I have another problem. I need put in the head of the new SGML file:
> 		"<!doctype JADETEST SYSTEM "jadetest.dtd">". 
> When I make this with: 
> 		"(literal "<!doctype JADETEST SYSTEM "Jadetest.DTD">")" 
> I have a error: 
> 		
> "Jade:c:\StarDsssl\Evo-Jade\Evo_out.dsl:14:16:E: "DOCTYPE" 	
> 	declaration
> not allowed in instance."
> 
> Wath am I making wrong?

Since a DSSSL script is a SGML document instance, only the contents is
declared to be in aaccordance with the DSSSL-spec. This means that
you cannot use "<!doctype...>" since the '<!doctype...>' is interpreted
by Jade as being SGML.

The solution is to use a Jade extension:

(declare-flow-object-class document-type
  "UNREGISTERED::James Clark//Flow Object Class::document-type")

(make document-type
      system-id: "jadetest.dtd"
      name: "jadetest")


regards,

pieter

-- 
Pieter Rijken                          E-mail: pieter.rijken@xxxxxx

CMG Telecommunications and Utilities B.V.
Division Advanced Technology
Nieuwekade 1-19
P.O. Box 8038                 Phone: +31 30 2339300
3503 RA Utrecht               Fax:   +31 30 2339495
The Netherlands
-------------------------------------------------------------------

DISCLAIMER: This statement is not an official statement from, nor
            does it represent an official position of, CMG
            Telecommunications and Utilities B.V.

------------------------------------------------------------------- 


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


Current Thread