Re: sgml-omittag, sgml-shorttag, ...

Jochen Hayek <[email protected]> Tue, 03 Apr 2007 15:29:58 +0200
Newsgroups gmane.emacs.psgml.user
Organization Linux Private Site
Message-ID <[email protected]>
>>>>> Steinar Bang writes:

>>>>> Jochen Hayek <[email protected]>:

    >> What I meant in my own words is the ability to leave out the end tag
    >> and end the start tag with "/>".

    >> And I think, that is possible with SGML and XML under certain
    >> circumstances.

    SB> It's possible for XML for all tags that are allowed empty content
    SB> (<sometag/> is equivalent to <sometag></sometag>).

    SB> It's not possible in SGML.  Ie. the "/>" construct is not allowed in
    SB> SGML. 

    SB> What _is_ possible in SGML, 
    SB> is to have an element that is just the starttag.
    SB> Eg. <br> in HTML.

Thanks a lot for the light you shed on that!

But may I try to direct your interest towards my original question:

Can I make psgml support that style?
I mean so that it properly indents also after the occurrence of such a beast?

    JH> sgml-show-context is not aware, that the element is to be regarded closed after a

    JH>     <outline iscomment="false" isbreakpoint="false"/>

    JH> and therefore indentation also goes a little more to the right,
    JH> and I have no idea, how to change this but just by changing the element above to:

    JH>     <outline iscomment="false" isbreakpoint="false"></outline>


Thanks!

Jochen


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV