docbook: Strange/buggy SGML export using LyX
Subject:
Strange/buggy SGML export using LyX
From:
Peter Bieringer ####@####.####
Date:
29 Jan 2002 23:01:24 -0000
Message-Id: <113820000.1012345280@localhost>
Hi,
I'm still a little bit new to LDP,LyX and SGML but writing on the
Linux+IPv6-HOWTO I run inbetween now into three problems which I
believe that they aren't my fault.
Used LyX: 1.1.6fix1 on a Red Hat Linux 7.2 system
Template: docbook
$ more /usr/share/lyx/templates/docbook_template.lyx
#This file was created by <jamatos> Fri Sep 24 13:10:52 1999
#LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team
----
1. problem:
A LyX table is not proper exported in SGML, the colspec tag is not
very well:
Example
<colspec colname="col0" align="center"/>
and fix:
- <colspec colname="col0" align="center"/>
+ <colspec colname="col0" align="center">
Ok, done by a selfmade Perl parser now after export
----
2. problem:
LyX sometimes exports left and right quotes which aren't understand
by "nsgmls"
Examples:
“
”
Fix: replace them with "
Ok, done by a selfmade Perl parser now after export
----
3. problem
LyX doesn't "escape" "&" chars in exported URLs, but nsgmls don't
like this:
Example:
<ulink
url="http://researchcenter.zdnet.com/data/detail?id=1001711171_237&ty
pe=RES&x=120054357">How Long the Aversion to IP Version 6</ulink> -
Review of META Group, Inc., full access needs (free) registration at
META Group, Inc.
Jade checker:
jade:../Linux+IPv6-HOWTO.sgml:4678:78:E: general entity "type" not
defined and no default entity
jade:../Linux+IPv6-HOWTO.sgml:4678:87:E: general entity "x" not
defined and no default entity
fix:
manual replace of "&" with "&"
No idea for an automatic fix, because it's difficult to differ
between standalone "&" and "&" of starting entinites.
Are this problems known?
Are already fixes available (either LyX template or jade)?
TIA,
Peter