473,405 Members | 2,261 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

SGML entities: browser support?

How's browser support for author-defined entities? E.g.:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<!ENTITY foo CDATA "bar"><title>...</title>
<p>I went to the &foo; and had a drink.

How about for replacing already defined ones? E.g.:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<!ENTITY shy CDATA "bashful"><title>...</title>
<p>I'm outgoing but he's ­.
(Note that ­ is defined in HTML 4.01.)

Michael Hamm
AM, Math, Wash. U. St. Louis
ms****@math.wustl.edu Fine print:
http://math.wustl.edu/~msh210/ ... legal.html
Jul 23 '05 #1
3 1839
Michael Hamm <ms****@math.wustl.edu> wrote:
How's browser support for author-defined entities? E.g.:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<!ENTITY foo CDATA "bar"><title>...</title>
<p>I went to the &foo; and had a drink.
Nonexistent. When using XHTML, things are different, but using XHTML
opens a much bigger can of worms.
How about for replacing already defined ones?


Ditto.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #2
On Tue, 8 Mar 2005 08:11:40 -0600, Michael Hamm <ms****@math.wustl.edu>
wrote:
How's browser support for author-defined entities? E.g.:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<!ENTITY foo CDATA "bar"><title>...</title>
<p>I went to the &foo; and had a drink.
Browser support is nil but you could use your own entity definitions at
a preprocessor level using onsgmls and/or osgmlnorm. You may want to
check this example for a simple exercise...

http://www.css.nu/markup/markup-entities.html
How about for replacing already defined ones? E.g.:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<!ENTITY shy CDATA "bashful"><title>...</title>
<p>I'm outgoing but he's ­.
(Note that ­ is defined in HTML 4.01.)


That would not be a valid attempt any way; following SGML rules you can
not redefine an entity that the parser has already seen.

Have a look at how the HTML Framset DTD gets included in markup and you
will find that the only way that could work is if an entity redefinition
is not allowed.

Btw... Your syntax is wrong in your examples above. Entities shall be
defined in an external or internal subset and you need to mark up your
own entities accordingly. Se source examples at URL above for an example
of correct syntax.

--
Rex
Jul 23 '05 #3
I asked (in part):
How's browser support


I see two responses (quick!) and thank you both.

Michael Hamm
AM, Math, Wash. U. St. Louis
ms****@math.wustl.edu Fine print:
http://math.wustl.edu/~msh210/ ... legal.html
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kunle Odutola | last post by:
I have a database that tracks players for children's sports clubs. I have included representative DDL for this database at the end of this post. A single instance of this database supports...
1
by: Usman | last post by:
Dear friends, I would like to ask about James Clark sx.exe parser from SGML to XML. I write the batch file like this : "E:\Project\sx\sx.exe" -wall "-DE:\Project\sx\entities"...
0
by: Nick Kew | last post by:
Rationale ========= Many applications today benefit from an SGML and/or XML Entity Catalogue to dereference entities referenced by a Public Identifier. For a validating SGML parser this is an...
1
by: krammer | last post by:
Hello, I have the following questions that I have not been able to find any *good* answers for. Your help would me much appreciated!, fyi, I am a Java XML guy and I have no experience with SGML...
1
by: krammer | last post by:
Hello, Can any one please give me a short but concise pros and cons list of Unicode support in both SGML and XML? long story short, we are gonna port our leagacy SGML files to XML and the new...
81
by: Jonas Smithson | last post by:
I recently read the claim somewhere that numerical entities (such as —) have a speed advantage over the equivalent named entities (such as &mdash;) because the numerical entity requires just a...
19
by: Ian | last post by:
I'm using the following meta tag with my documents: <meta http-equiv="Content-Type" content= "text/html; charset=us-ascii" /> and yet using character entities like &rsquo; and &mdash; It...
2
by: Frantic | last post by:
I'm working on a list of japaneese entities that contain the entity, the unicode hexadecimal code and the xml/sgml entity used for that entity. A unicode document is read into the program, then the...
2
by: Jean-François Michaud | last post by:
Hello, I was wondering if anybody could point me in the right direction regarding this. I have unicode entities in an XML in hexadecimal format and I need to be able to convert to ISO...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.