Subject: Re: Empty XML elements and Jade/NSGMLS From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxx> Date: Tue, 24 Nov 1998 11:32:09 -0500 (EST) |
I'm sorry I didn't notice this one earlier until I just saw Tony's response. At 98/11/13 16:37 -0500, STE MARIE, PAUL wrote: >Is there any good mechanism to get Jade and other SP-based tools to >recognize the XML <tag/> syntax for empty tags? I set up the environment >variable as specified in the docs: I don't use the environment variables at all. In the JADE deliverable you will find the file "xml.dcl". When you use it, XML-styled empty tags are detected; if you don't, they aren't. I hope the example below helps. ...... Ken T:\FTEMP>type test.xml <?xml version="1.0"?> <greeting>hello <test/> world</greeting> T:\FTEMP>type test.dsl <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN"> (declare-flow-object-class element "UNREGISTERED::James Clark//Flow Object Class::element") (element greeting (make element gi: "p" (process-children))) (element test (make element gi: "i" (literal "*"))) ;end of file T:\FTEMP>jade -c p:\jade\jadecurr\catalog -wno-valid -t sgml -f test.err test.xml >test.htm T:\FTEMP>type test.err C:\PROGRA~1\JADE\JADECURR\JADE.EXE:test.xml:2:39:E: end tag for "TEST" omitted, but its declaration does not permit this C:\PROGRA~1\JADE\JADECURR\JADE.EXE:test.xml:2:16: start tag was here T:\FTEMP>jade -c p:\jade\jadecurr\catalog -wno-valid -t sgml -f test.err p:\jade\jadecurr\xml.dcl test.xml >test.htm T:\FTEMP>type test.err T:\FTEMP>type test.htm <p >hello <i >*</i > world</p > -- G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/d/ Box 266, V: +1(613)489-0999 Kars, Ontario CANADA K0A-2E0 F: +1(613)489-0995 Training: http://www.CraneSoftwrights.com/d/schedule.htm Resources: http://www.CraneSoftwrights.com/d/resources.htm Shareware: http://www.CraneSoftwrights.com/d/shareware.htm DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Empty XML elements and Jade/NSG, Tony Graham | Thread | RE: Empty XML elements and Jade/NSG, STE MARIE, PAUL |
Re: Empty XML elements and Jade/NSG, Tony Graham | Date | Re: Jade 1.2 and JadeTeX, Russell Senior |
Month |