ksgmltools (additional question)

Andreas at bluewin.ch Andreas at bluewin.ch
Thu Jul 13 21:27:56 BST 2000


If you look at the SGML DTD you'll notice that the img tag isn't part of
the syntax. Only ksgml2html recognizes it. This is way to do it with HTML
and PS versions.

<#if output="html"><img src="Overview.png"></#if> 

<#unless output="html">
<figure loc="here"> <eps file="Overview.eps" height="8cm" angle="0">
<caption>Kernel Subsystem Overview </figure>
</figure>
</#unless> 

The sgmltools will report an error, but the result is fine. sgml2html will
not work, but ksgml2html and all the other sgml2*. Note: The eps tag is
part of SGML.

Hope it helps, 

Andreas 

Thu, 13 Jul 2000, mh wrote:
> Ralf Nolden, Mit, 12 Jul 2000 :
> > Steven Suson wrote:
> 
> > I think you can use the html tag <img src="yourfile.png">. There are
> > some KDE docs of 1.1.2 who use that in their sgml file for screenshots,
> > just remember that it won´t work for latex or postscript output (which
> > is why I left screenshots out of kdevelop´s books)
> 
> Hi,
> since you are talking about ksgmltools, I dare to ask an additional
> question:
> When I try to generate the documentation using ksgml2html, I get the
> following message:
> 
> Using existing index.nif.
> sgml2html: can't find -N or -N.sgml
> Copying icons...
> Done.
> *** Erfolg ***
> 
> When I use sgml2html instead, I can't insert an image at all:
> ...
> sgmls: SGML error at index.sgml, line 10 at " ":
>        Undefined IMG start-tag GI ignored; not used in DTD
> sgmls: SGML error at index.sgml, line 10 at "=":
>        ARTICLE end-tag implied by data; not minimizable
> sgmls: SGML error at index.sgml, line 10 at "=":
> ...
> Can anybody explain this please?
> 
> Thanks Michael
> 
> 


>> Linux - expert friendly   (Linux 2.4.0-test1-ac21) <<

Andreas Schlapbach          
mailto:schlpbch at iam.unibe.ch
http://iamexwiwww.unibe.ch/studenten/schlpbch		





More information about the KDevelop mailing list