-----Ursprüngliche Nachricht-----
Von: "Stephen Harris" <>
Gesendet: 16.03.06 06:38:58
An: <chris(at)karakas-online.de>
Betreff: LyX 1.4.0 and DocBook SGML


Stephen Harris wrote:
Hello Chris,

I found your document interesting. When I opened
your mySGML.lyx, I got that missing docbook-book
TeX class error, but it seemed to display properly?

CK: Well, it does display OK. But, for example: what you see there as

===========================
<subtitle>

A quest for the Holy Grail of technical documentation

</subtitle>

<authorgroup>

<author>

<firstname>Chris</firstname>     <surname>Karakas</surname>

<affiliation>

 <orgname>www.karakas&mdash;online.de</orgname>

</affiliation>

</author>

</authorgroup>

<keywordset>

<keyword>LyX</keyword>

<keyword>SGML</keyword>

<keyword>sgmltools</keyword>

<keyword>docbook</keyword>

===========================

etc. is *pure* SGML. In LyX 1.2, there is a special environment for pure SGML: it is called "SGML". Text that you type in that environment is exported "as is", that is you get the SGML you typed. Now reconfigure your LyX first, so that you hopefully get to see that "DocBook SGML book" class and then try to "export -> DocBook" (not DocBook XML). You will see that the above is exported as

===========================
<para>&lt;subtitle&gt;</para>
<para>A quest for the Holy Grail of technical documentation</para>
<para>&lt;/subtitle&gt;</para>
<para>&lt;authorgroup&gt;</para>
<para>&lt;author&gt;   </para>
<para>&lt;firstname&gt;Chris&lt;/firstname&gt; &lt;surname&gt;Karakas&lt;/surname&gt; </para>
<para>&lt;affiliation&gt; </para>
<para> &lt;orgname&gt;www.karakas&amp;mdash;online.de&lt;/orgname&gt; </para>
<para> &lt;/affiliation&gt;  </para>
<para>&lt;/author&gt;</para>
<para>&lt;/authorgroup&gt;</para>
<para>&lt;keywordset&gt;</para>
<para>&lt;keyword&gt;LyX&lt;/keyword&gt;</para>
<para>&lt;keyword&gt;SGML&lt;/keyword&gt;</para>
<para>&lt;keyword&gt;sgmltools&lt;/keyword&gt;</para>
<para>&lt;keyword&gt;docbook&lt;/keyword&gt;</para>
===========================

This is NOT what we want! :-(

I hope it's clear now.

Regards,

Chris Karakas
http://www.karakas-online.de
---------------------------------------------

Thanks for the clarification. I was interested because of a
project John Pye started for converting FrameMaker to
Docbook and wanted insight into a complicated process.

Regards,
Stephen


Reply via email to