William E. Kempf | 3 Jul 2003 19:21
Picon

sgml-default-doctype-name

I'm confused by this variable.  The documentation indicates that if no
DOCTYPE is specified then a DOCTYPE of the form

<!DOCTYPE name SYSTEM>

will be used, where "name" above is the value from
sgml-default-doctype-name.  Well, I've set this to "html", but when
parsing it fails with "External entity html not found".  If I manually add

<!DOCTYPE html SYSTEM>

and reparse, everything is fine.  So I don't think it's something with how
my system is setup for the catalog files or anything.  So, why doesn't
this work?

--

-- 
William E. Kempf

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
Dieter Maurer | 4 Jul 2003 22:09
Picon

Re: sgml-default-doctype-name

William E. Kempf wrote at 2003-7-3 12:21 -0500:
 > I'm confused by this variable.  The documentation indicates that if no
 > DOCTYPE is specified then a DOCTYPE of the form
 > 
 > <!DOCTYPE name SYSTEM>
 > 
 > will be used, where "name" above is the value from
 > sgml-default-doctype-name.

That sounds strange (unbelievable) for me:

  "name" above is not a doctype name. It would be very strange
  if it were specified by "sgml-default-doctype-name".
  I associate "doctype-name" more with the public or system identifier
  of the "doctype".

Dieter

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
Lennart Staflin | 12 Jul 2003 21:30
Picon
Picon
Picon
Favicon

Re: sgml-default-doctype-name


On torsdag, jul 3, 2003, at 19:21 Europe/Stockholm, William E. Kempf 
wrote:

> I'm confused by this variable.  The documentation indicates that if no
> DOCTYPE is specified then a DOCTYPE of the form
>
> <!DOCTYPE name SYSTEM>
>
> will be used, where "name" above is the value from
> sgml-default-doctype-name.  Well, I've set this to "html", but when
> parsing it fails with "External entity html not found".  If I manually 
> add
>

I think we have a case of case sensitivity that is not properly 
documented (sgml-parent-document is another). You will have to set it 
to "HTML".

//Lennart

-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
D. D. Brierton | 19 Jul 2003 18:31

"Smart" quotes and dashes in PSGML

I write (X)HTML documents in Emacs using PSGML mode. At the moment,
whenever I've finished a document I do various search-and-replaces to
get proper punctuation marks, such as replacing ' with &rsquo;, -- with
&ndash;, --- with &mdash;, and " with either &ldquo; or &rdquo;. I was
wondering whether anyone had written a function which would do that
automatically as I type, rather like lots of word processors do, but
which would not touch anything within a tag (such as the quote marks
around attribute values, or the comment markers)?

TIA, Darren

--

-- 
=====================================================================
D. D. Brierton            darren <at> dzr-web.com          www.dzr-web.com
       Trying is the first step towards failure (Homer Simpson)
=====================================================================

-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0

Gmane