This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Null endtag in XML [was: RE: XML / SGML dtd compatible?]


Hello

>>> c:\tools\docbook\jade\jade:../chap_wxcanvas.sgm:43:54:E: character data
>>> is not allowed here
>>>
>>> Which is exactly at the end of the line where i added the slash />
>>>
>>> Any idea ?
>>
>>Well, the problem is kind of basic.
>>It comes from a different syntax between SGML and XML.
>>Empty elements, in XML, are written <name/>, which embodies both <element> and </element>.
>>
>>By the way, a question for the gurus. Does the web amendments for SGML permit XML syntax in
>>SGML???

These rules are defined by the corresponding SGML declaration. The SGML declaration for XML contains
the following (among other things):
	FEATURES
		MINIMIZE
			SHORTTAG
				STARTTAG
					NETENABL IMMEDNET

The last line (in it's context) permits the XML syntax of <elem ... />. One can hack up his own
working variant of SGML declaration, containing this rule, for his tools to use. As for DocBook
documents that are valid XML, you can use
	jade -t xxx -d xxx xml.dcl your-doc.sgml
to process [your-doc.sgml] with XML declaration (which is in [xml.dcl] file in the Jade distribution
package).

Regards,
Andrey Taranov,
Customized Information Systems,
Moscow, Russia


------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-request@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]