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


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

Re: PSGML source moved to Sourceforge



 
> > I had problems with XHTML and the xml:lang attribute. It didn't
> > seem to understand namespace syntax.
> 
> I remember hearing somewhere else about this (psgml not liking the
> xml:lang attribute). But I'm sure it's not a problem with psgml
> itself, but instead a problem specific to your environment.
> 
> I say I'm sure because I do all my XHTML authoring in Emacs/psgml and
> have no trouble using any of the XML DTDs (transitional, strict,
> frameset). Psgml parses all of them without squacking, and lets me
> insert the xml:lang attribute anywhere the DTDs say it's valid.
> 
> What exactly is the error message you're getting?

It is loading SGML mode which may be the problem. I sure don't
understang why since .xml files load up the xml mode and highlight just
fine.

From .emacs file

(add-to-list 'load-path "/home/maxwell/elisp/psgml-1.2.1/")
(autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t)
(autoload 'xml-mode "psgml" "Major mode to edit XML files." t)

(add-to-list 'auto-mode-alist '("\\.xml\\'" . xml-mode))
(add-to-list 'auto-mode-alist '("\\.html\\'" . xml-mode))
(add-to-list 'auto-mode-alist '("\\.sgml\\'" . sgml-mode))

My XML file is test.html. psgml parsed the file fine without the catalog
file stuff which I don't really understand.

I'm using a made up file based on docbook since it worked.

$ cat /home/maxwell/dtds/xhtml1/xhtml1.cat
  -- like docbook catalog file --
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "xhtml1-strict.dtd"
PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "xhtml-lat1.ent"
PUBLIC "-//W3C//ENTITIES Symbols for XHTML//EN" "xhtml-symbol.ent"
PUBLIC "-//W3C//ENTITIES Special for XHTML//EN" "xhtml-special.ent"

Maybe this will help.
Eric :-)
> 
>   --Mike Smith
> 
> --
> Michael Smith          mailto:smith@xml-doc.org
> XML-DOC                http://www.xml-doc.org/

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