OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: Writing a DTD

[ Lists Home | Date Index | Thread Index ]
  • From: Dylan Walsh <Dylan.Walsh@Kadius.com>
  • To: xml-dev@lists.xml.org
  • Date: Fri, 03 Nov 2000 17:27:23 +0000

There are only 5 predefined entity references in XML: &lt; &gt; &amp; &apos;
and &quot;
&lpar; is not one of them. Perhaps it is defined in SGML, I can't say, but
it is not "built-in" in XML.

If he wishes to refer to such an entity he would have to define it in a DTD.
However I don't see how using such an entity reference would help him, over
just writing "(" or ")" in the document. In XML he must use tags to markup
elements, and cannot elect to use brackets. Perhaps there is some confusion
here between the capabilities of XML and SGML (the latter I'm not familiar

-----Original Message-----
From:	Ramesh Gupta [SMTP:ramesh@eNode.com]
Sent:	Friday, November 03, 2000 5:10 PM
To:	xml-dev@lists.xml.org
Subject:	Re: Writing a DTD

Use character entity references of the form &#n; where n is a decimal value
in the range '0' to '255' to represent a character from the extended ASCII
set, ISO 8859/1. So, for example, "(" can be written as &#40; and is
equivalent to the built-in text entity reference &lpar;

I also suggest that you get an XML primer and do some independent research.
The XML dev list is a great resource, but it is not a substitute for a good
book, of which there are plenty available now.



News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS