Re: normalizing input to jade

Subject: Re: normalizing input to jade
From: Tony Graham <tgraham@xxxxxxxxxxxxxxxx>
Date: Thu, 23 Jul 1998 19:38:26 -0400 (EDT)
At 23 Jul 1998 16:45 -0500, Fred Yankowski wrote:
 > 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
 > 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".

It's up to James Clark to say if you've found a bug in spam, but you
shouldn't need to run spam anyway.

When Jade parses the input document, it also reads and parses the DTD
that your document references in its prolog, and the attribute
defaults will be available to Jade and to your stylesheet.


Tony Graham
Tony Graham
Mulberry Technologies, Inc.                         Phone: 301-315-9632
17 West Jefferson Street, Suite 207                 Fax:   301-315-8285
Rockville, MD USA 20850                 email: tgraham@xxxxxxxxxxxxxxxx

 DSSSList info and archive:

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