D. D. Brierton | 8 Nov 2002 20:07

Correct sgml-declaration for (X)HTML

What are the best files to use for the sgml-declaration for HTML and
XHTML? At the moment, for HTML 4.01 Strict, Transitional and Frameset
I'm currently using

/usr/share/sgml/openjade/pubtext/html.dcl

and for XHTML 1.0 Strict, Transitional and Frameset, and XHTML 1.1 I'm
using

/usr/share/sgml/openjade/pubtext/xml.dcl

both from from openjade 1.3.1. Are these appropriate? (I'm not really
sure what the declaration file does exactly.) Are there ones from the
W3C that are specific to the particular flavours of HTML?

Best, 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: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
Karl Eichwalder | 9 Nov 2002 20:55
Picon

Re: Correct sgml-declaration for (X)HTML

"D. D. Brierton" <darren <at> dzr-web.com> writes:

> What are the best files to use for the sgml-declaration for HTML and
> XHTML? At the moment, for HTML 4.01 Strict, Transitional and Frameset
> I'm currently using
>
> /usr/share/sgml/openjade/pubtext/html.dcl

Why not using HTML4.dcl?

> and for XHTML 1.0 Strict, Transitional and Frameset, and XHTML 1.1 I'm
> using
>
> /usr/share/sgml/openjade/pubtext/xml.dcl

The XML declaration is the same for all XML DTD; XML = XML ;)

> both from from openjade 1.3.1. Are these appropriate? (I'm not really
> sure what the declaration file does exactly.)

The SGML declaration define the charset, syntax and various SGML
features (e.g. minimizations or quantities).  Good reading:

    http://www.sgml.u-net.com/book

by Martin Bryan.

> Are there ones from the W3C that are specific to the particular
> flavours of HTML?

(Continue reading)

D. D. Brierton | 9 Nov 2002 22:05

Re: Re: Correct sgml-declaration for (X)HTML

On Sat, 2002-11-09 at 19:55, Karl Eichwalder wrote:
> "D. D. Brierton" <darren <at> dzr-web.com> writes:
> 
> > What are the best files to use for the sgml-declaration for HTML and
> > XHTML? At the moment, for HTML 4.01 Strict, Transitional and Frameset
> > I'm currently using
> >
> > /usr/share/sgml/openjade/pubtext/html.dcl
> 
> Why not using HTML4.dcl?

Ermm .. because I hadn't noticed it! Thanks for pointing that out.

> > and for XHTML 1.0 Strict, Transitional and Frameset, and XHTML 1.1 I'm
> > using
> >
> > /usr/share/sgml/openjade/pubtext/xml.dcl
> 
> The XML declaration is the same for all XML DTD; XML = XML ;)

I suspected as much - just wanted confirmation. Thanks!

> > both from from openjade 1.3.1. Are these appropriate? (I'm not really
> > sure what the declaration file does exactly.)
> 
> The SGML declaration define the charset, syntax and various SGML
> features (e.g. minimizations or quantities).  Good reading:
> 
>     http://www.sgml.u-net.com/book
> 
(Continue reading)

Artiom Neganov | 26 Nov 2002 20:04
Picon

Colorizing

Hello, psgml-user,

  In short, when colorizing will work in Emacs? :)

  Currently I use that trick with psgml-debug.el
  and <?PSGML ..?> PI suggested in this list before but it
  is not enough.

  When editing XSL files, due to long names of elements
  and massive use of attributes a document becomes hard
  to read. The only thing which is REALLY needed is
  different colors for elements and  attributes.
  As for XPath expressions - displaying them with
  another color would good too (they could be too long
  and pretty complex to look like ordinary attribute).

--

-- 
best regards,
 Artiom                          mailto:aneganov <at> end.org.ru

-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
Dave Pawson | 26 Nov 2002 20:18
Picon
Picon

Re: Colorizing

At 19:04 26/11/2002, Artiom Neganov wrote:
>Hello, psgml-user,
>
>  In short, when colorizing will work in Emacs? :)
>  
>  Currently I use that trick with psgml-debug.el
>  and <?PSGML ..?> PI suggested in this list before but it
>  is not enough.
>
>  When editing XSL files, due to long names of elements
>  and massive use of attributes a document becomes hard
>  to read. The only thing which is REALLY needed is
>  different colors for elements and  attributes.

Do you use Tony Grahams xslt mode?

Good enough for me.

HTH DaveP

-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
Kai Großjohann | 27 Nov 2002 13:25
Picon

Re: Colorizing

I use xxml.el for highlighting XML files, and that seems to fulfill
your wishes.
--

-- 
~/.signature is: umop ap!sdn    (Frank Nobis)

-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
Artiom Neganov | 27 Nov 2002 16:08
Picon

Re[2]: Colorizing

Hello, Dave,

DP> Do you use Tony Grahams xslt mode?

No, I read something about it but didn't find it (nor did I
search I carefully). So, the URL is welcome :)

DP> Good enough for me.

Despite I'm yet to know about "Tony Grahams xslt mode" I
believe there are no features which makes PSGML so
attractive. I use tag's completion, DTD parsing, ENTITY
substitution, folding, autoindentation on whole buffer and
other usefull stuff.

--

-- 
best regards,
 Artiom                            mailto:aneganov <at> end.org.ru

-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
Artiom Neganov | 27 Nov 2002 16:07
Picon

Re[2]: Colorizing

Hello, D.,

Wednesday, November 27, 2002, 3:50:53 PM, you wrote:

DDB> At a bare minimum it would seem that element names, attribute names and
DDB> attribute values should be colourised differently; but if someone were
DDB> to offer to step up to the mark and work on this, then many other things
DDB> could be done, such as distinctive colourisation of special attribute
DDB> values, like XPath expressions, namespace prefixes, or the internal
DDB> subsets of document type declarations.

[Non-official] version of PSGML for XEmacs can do almost all
from above by exploiting HTML colorizing. Of course this is
not common solution, but it IS better then nothing. As for me -
I would be satisfied with a patch which allow using HTML
colorization with PSGML in Emacs :)

--

-- 
best regards,
 Artiom                            mailto:aneganov <at> end.org.ru

-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
D. D. Brierton | 27 Nov 2002 13:54

Re: Colorizing

On Tue, 2002-11-26 at 19:18, Dave Pawson wrote:

> Do you use Tony Grahams xslt mode?

I can't find that on the ELL. Is that xslide?

Best, 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: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en

Gmane