normalizing input to jade

Subject: normalizing input to jade
From: Fred Yankowski <fcy@xxxxxxx>
Date: Thu, 23 Jul 1998 16:45:46 -0500 (CDT)
Greetings,

Before processing a XML document with jade, I want to normalize it to
add default values (as defined in the DTD) for optional attributes
that weren't specified in the document.  I thought 'spam' would do
this for me, but it and jade don't get along.  Here's the command I
tried:

	spam -m attspec -p /jade/pubtext/xml.dcl foo.xml |
	  jade -t sgml -d foo.dsl -c /jade/dsssl/catalog > foo.html

When run, jade reports hundreds of errors like this:

	jade:<OSFD>0:47:29:E: there is no unique character in the
	internal character set corresponding to character number
	192214 in the syntax reference character set

Looking at the output of spam above, I see that it is removing many of
the hyphens from the SGML declaration.  Here's a sample snippet of
diff output:

	*** 44,115 ****
	               NAMESTRT
	!                  58 95 192-214 216-246 248-305 308-318 321-328
	!                  330-382 384-451 461-496 500-501 506-535 592-680
	!                  699-705 902 904-906 908 910-929 931-974 976-982
	
	--- 44,115 ----
	               NAMESTRT
	!                  58 95 192214 216246 248305 308318 321328
	!                  330382 384451 461496 500501 506535 592680
	!                  699705 902 904906 908 910929 931974 976982
  
This seems like a bug in spam.  Or is the xml.dcl file wrong to use
the hyphens?  Is there some way to work around this problem?

BTW, "spam -v" reports that it's version "1.3.1".

-- 
Fred Yankowski  fyankowski@xxxxxxxxxxxxxxx  tel: +1(630)955-3460
INTELLICORP   2443 Warrenville Rd, Ste 600, Lisle, IL 60532, USA


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


Current Thread
  • normalizing input to jade
    • Fred Yankowski - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id RAA24092Thu, 23 Jul 1998 17:49:21 -0400 (EDT) <=
      • Tony Graham - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id TAA26815Thu, 23 Jul 1998 19:40:15 -0400 (EDT)