docbook: Thread: Error while parsing sgml with openjade


[<<] [<] Page 3 of 3 [>] [>>]
Subject: Re: Error while parsing sgml with openjade
From: Tabatha Marshall ####@####.####
Date: 26 Mar 2004 05:23:39 -0000
Message-Id: <1080278584.19664.23.camel@mysticchild>

Hi Michael,

I processed my copy of your document with my openjade, and everything
came out fine.  I am using the ldp.dsl and my processing command is as
follows:

openjade -t xml -d
/usr/share/sgml/docbook/dsssl-stylesheets/html/ldp.dsl#html
/usr/share/sgml/xml.dcl yourfile.xml

(all on one line)

The umlauts showed up fine for me.  However, even leaving the existing
encoding as-is at the top of your document (as you quoted in your
messatge), if they aren't showing up for you, you can use the entities
for those letters as an alternative.  Usage is &entity; (entity being
one of those selected from the first column at the link below):

http://www.w3.org/2003/entities/iso8879doc/isolat1.html

As long as you're using the ldp.dsl and doing something similar to the
processing command above, it should be working.  Can you tell me what
you are typing, and which dsl you are using?

Tab


On Mon, 2004-03-22 at 11:36, Michael Schlenstedt wrote:
> On Mo Mär 15, 2004, Tabatha Marshall ####@####.#### wrote:
> > I actually grabbed the file from Michael's link and took a look.  Put in
> > the missing </row> tag and properly closed all the xrefs and he's good
> > to go.
> > 
> > :D
> > 
> > Tab
> 
> I now have a working XML-openjade-docbook-installation! Thanks a lot to
> everyone who helped!
> 
> The only problem I still have: The german umlauts are displayed wrong in
> the generated html-files. It seems that they are displayed with random
> letters.
> 
> This is how I start the xml-file:
> 
> ,----
> | <?xml version="1.0" encoding="ISO-8859-1"?>
> `----
> 
> Bye,
> Michael
> 
> 
> 
> 
> ______________________
> http://lists.tldp.org/
-- 
Tabatha Marshall
Web: www.merlinmonroe.com
Linux Documentation Project Review Coordinator (http://www.tldp.org)
Linux Counter Area Manager US:wa (http://counter.li.org)

Subject: Re: Error while parsing sgml with openjade
From: Kian Spongsveen ####@####.####
Date: 26 Mar 2004 06:30:23 -0000
Message-Id: <200403260730.42718.sybase@kian.org>

On Tuesday 23 March 2004 07:32, Michael Schlenstedt wrote:
> On Mo Mär 22, 2004, Togan Muftuoglu ####@####.#### wrote:
> > >This is how I start the xml-file:
> > >
> > >,----
> > >
> > >| <?xml version="1.0" encoding="ISO-8859-1"?>
> > >
> > >`----
> >
> > what does is say in the html file
>
> Mmhh I only have this in the html-file:
>
> ,----
>
> | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>
> `----
>
> Well, the broken umlauts are not only visible when viewing the file with
> a webbrowser, there are also broken in the source of the html-file.
>
> I've loaded the broken html-files up:
> http://www.schlenn.net/~michael/temp/broken/
>
> Bye,
> Michael
>
> ______________________
> http://lists.tldp.org/

Just in case nobody replied to you off-line either; those characters are 
UTF-8. Change encoding manually in your browser and it displays fine. In a 
hex editor you can for instance see that your "lower case a with two dots" 
are transformed into 0xC3h 0xA4h, which is represented in UTF-8 as:
ä, &#xC3A4; "C3A4 LATIN SMALL LETTER A WITH DIAERESIS"  &auml;
However, it should also be possible to display this in ISO1 as a &#228; 0xE4h 
as it is part of that character set also. In UCS Unicode it is U+00E4.
Hopefully that will help out so someone who knows the DocBook stuff better can 
look into the transformations.
You could manually replace them with "&auml;" in your source text, but I agree 
this should be an automatic process.

-- 
Kian Spongsveen
Subject: Re: Error while parsing sgml with openjade
From: Michael Schlenstedt ####@####.####
Date: 27 Mar 2004 07:55:11 -0000
Message-Id: <20040327075539.GA2836@schlenn.net>

On Do Mär 25, 2004, Tabatha Marshall ####@####.#### wrote:
> Hi Michael,
> 
> I processed my copy of your document with my openjade, and everything
> came out fine.  I am using the ldp.dsl and my processing command is as
> follows:
> 
> openjade -t xml -d
> /usr/share/sgml/docbook/dsssl-stylesheets/html/ldp.dsl#html
> /usr/share/sgml/xml.dcl yourfile.xml
> 
> (all on one line)
> 

And this is my command:

/usr/local/dbtools/openjade/bin/openjade -t xml -i html -d
/usr/local/dbtools/docbook-dsssl/html/ldp.dsl#html
/usr/local/dbtools/docbook-dsssl/dtds/decls/xml.dcl
DE-Linux-ISDN-HOWTO.xml

I have to use "-i html", otherwise I get no html-files as a result, but
only
an output to stdout.

But I also get a lot of errors (don't know why I saw them not the last
time...):

/usr/local/dbtools/dtd4.1.2/ent/iso-lat1.ent:6:19:E: "X00E1" is not a
function name
/usr/local/dbtools/dtd4.1.2/ent/iso-lat1.ent:7:19:E: "X00C1" is not a
function name
/usr/local/dbtools/dtd4.1.2/ent/iso-lat1.ent:8:18:E: "X00E2" is not a
function name
/usr/local/dbtools/dtd4.1.2/ent/iso-lat1.ent:9:18:E: "X00C2" is not a
function name
/usr/local/dbtools/dtd4.1.2/ent/iso-lat1.ent:10:19:E: "X00E0" is not a
function name
/usr/local/dbtools/dtd4.1.2/ent/iso-lat1.ent:11:19:E: "X00C0" is not a
function name
/usr/local/dbtools/dtd4.1.2/ent/iso-lat1.ent:12:18:E: "X00E5" is not a
function name
/usr/local/dbtools/dtd4.1.2/ent/iso-lat1.ent:13:18:E: "X00C5" is not a
function name
/usr/local/dbtools/dtd4.1.2/ent/iso-lat1.ent:14:19:E: "X00E3" is not a
function name
/usr/local/dbtools/dtd4.1.2/ent/iso-lat1.ent:15:19:E: "X00C3" is not a
function name
/usr/local/dbtools/dtd4.1.2/ent/iso-lat1.ent:16:17:E: "X00E4" is not a
function name
[...]

DAMN DOCBOOK ;-)

Bye,
Michael

Subject: Re: Error while parsing sgml with openjade
From: Togan Muftuoglu ####@####.####
Date: 27 Mar 2004 09:21:31 -0000
Message-Id: <20040327092341.GL20623@dinamizm.com>

* Michael Schlenstedt; ####@####.#### on 27 Mar, 2004 wrote:
>On Do Mär 25, 2004, Tabatha Marshall ####@####.#### wrote:
>> Hi Michael,
>> 
>> I processed my copy of your document with my openjade, and everything
>> came out fine.  I am using the ldp.dsl and my processing command is as
>> follows:
>> 
>> openjade -t xml -d
>> /usr/share/sgml/docbook/dsssl-stylesheets/html/ldp.dsl#html
>> /usr/share/sgml/xml.dcl yourfile.xml
>> 
>> (all on one line)
>> 
>
>And this is my command:
>
>/usr/local/dbtools/openjade/bin/openjade -t xml -i html -d
>/usr/local/dbtools/docbook-dsssl/html/ldp.dsl#html
>/usr/local/dbtools/docbook-dsssl/dtds/decls/xml.dcl
>DE-Linux-ISDN-HOWTO.xml

Why people insist on using dssl sheets for XML files I would never
understand. SGML +DSSSL while XML+XSL

>
>I have to use "-i html", otherwise I get no html-files as a result, but

as far as I know -t is used to define the output format and -o isued to
define the file to be written

you may want to refer to the openjade manual for detailed explainations

>[...]
>
>DAMN DOCBOOK ;-)
>

Works for me preety good with none of the above errors 

-- 

Togan Muftuoglu

Subject: Re: Error while parsing sgml with openjade
From: "Ferg / LDP" ####@####.####
Date: 27 Mar 2004 19:55:17 -0000
Message-Id: <20040327195517.6081236E60@mail01.powweb.com>


>  But I also get a lot of errors
> /usr/local/dbtools/dtd4.1.2/ent/iso-lat1.ent:6:19:E: "X00E1" is not a
function name

Those point to a problem with the entity files. The XML processing
path uses a different form. This could explain the problem you are
having with the extended char's.

See:

  http://sources.redhat.com/ml/docbook-apps/2000-q4/msg00235.html
  http://sources.redhat.com/ml/docbook-apps/2000-q4/msg00246.html

If it would help, I can bundle up the DSSSL+entity files we use
for processing. Let me know.

regards,
-- 
Greg Ferguson / LDP volunteer
####@####.####
Subject: Re: Error while parsing sgml with openjade
From: Michael Schlenstedt ####@####.####
Date: 28 Mar 2004 07:44:26 -0000
Message-Id: <20040328074400.GA16105@schlenn.net>

On Sa Mär 27, 2004, Ferg / LDP ####@####.#### wrote:
> 
> If it would help, I can bundle up the DSSSL+entity files we use
> for processing. Let me know.
> 

Uuff, it works now ;-) I just use

openjade -d /usr/local/dbtools/docbook-dsssl/dtds/decls/xml ...

while parsing the xml-file as Saqib describes in his HOWTO. This now
produces correct Html-Files with correct umlauts!

I still get some errors, but they seem not to affect the output-files:

/usr/local/dbtools/openjade/bin/openjade -t xml -i html -d /usr/local/dbtools/docbook-dsssl/html/ldp.dsl#html /usr/local/dbtools/docbook-dsssl/dtds/decls/xml.dcl DE-Linux-ISDN-HOWTO.xml 

/usr/local/dbtools/openjade/bin/openjade:/usr/local/dbtools/docbook-dsssl/html/../html/../common/../common/dbl1no.dsl:2:66:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Added Latin 1//EN"
/usr/local/dbtools/openjade/bin/openjade:/usr/local/dbtools/docbook-dsssl/html/../html/../common/../common/dbl1no.dsl:3:5:E: reference to entity "lat1" for which no system identifier could be generated
/usr/local/dbtools/openjade/bin/openjade:/usr/local/dbtools/docbook-dsssl/html/../html/../common/../common/dbl1no.dsl:2:0: entity was defined here
/usr/local/dbtools/openjade/bin/openjade:/usr/local/dbtools/docbook-dsssl/html/../html/../common/../common/dbl1ro.dsl:2:66:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Added Latin 1//EN"
/usr/local/dbtools/openjade/bin/openjade:/usr/local/dbtools/docbook-dsssl/html/../html/../common/../common/dbl1ro.dsl:3:5:E: reference to entity "lat1" for which no system identifier could be generated
/usr/local/dbtools/openjade/bin/openjade:/usr/local/dbtools/docbook-dsssl/html/../html/../common/../common/dbl1ro.dsl:2:0: entity was defined here
/usr/local/dbtools/openjade/bin/openjade:/usr/local/dbtools/docbook-dsssl/html/../html/../common/../common/dbl1ro.dsl:4:66:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Added Latin 2//EN"
/usr/local/dbtools/openjade/bin/openjade:/usr/local/dbtools/docbook-dsssl/html/../html/../common/../common/dbl1ro.dsl:5:5:E: reference to entity "lat2" for which no system identifier could be generated
/usr/local/dbtools/openjade/bin/openjade:/usr/local/dbtools/docbook-dsssl/html/../html/../common/../common/dbl1ro.dsl:4:0: entity was defined here
/usr/local/dbtools/openjade/bin/openjade:/usr/local/dbtools/docbook-dsssl/html/../html/../common/../common/dbl1ru.dsl:2:69:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Russian Cyrillic//EN"
/usr/local/dbtools/openjade/bin/openjade:/usr/local/dbtools/docbook-dsssl/html/../html/../common/../common/dbl1ru.dsl:3:5:E: reference to entity "cyr1" for which no system identifier could be generated
/usr/local/dbtools/openjade/bin/openjade:/usr/local/dbtools/docbook-dsssl/html/../html/../common/../common/dbl1ru.dsl:2:0: entity was defined here
/usr/local/dbtools/openjade/bin/openjade:/usr/local/dbtools/docbook-dsssl/html/../html/../common/../common/dbl1sl.dsl:2:66:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Added Latin 2//EN"
/usr/local/dbtools/openjade/bin/openjade:/usr/local/dbtools/docbook-dsssl/html/../html/../common/../common/dbl1sl.dsl:3:5:E: reference to entity "lat2" for which no system identifier could be generated
/usr/local/dbtools/openjade/bin/openjade:/usr/local/dbtools/docbook-dsssl/html/../html/../common/../common/dbl1sl.dsl:2:0: entity was defined here
/usr/local/dbtools/openjade/bin/openjade:/usr/local/dbtools/docbook-dsssl/html/../html/../common/../common/dbl1sr.dsl:2:66:W: cannot generate system identifier for public text "ISO 8879:1986//ENTITIES Added Latin 2//EN"
/usr/local/dbtools/openjade/bin/openjade:/usr/local/dbtools/docbook-dsssl/html/../html/../common/../common/dbl1sr.dsl:3:5:E: reference to entity "lat2" for which no system identifier could be generated
/usr/local/dbtools/openjade/bin/openjade:/usr/local/dbtools/docbook-dsssl/html/../html/../common/../common/dbl1sr.dsl:2:0: entity was defined here

So in spite of these errors the installation works now for me! Thanks to everyone who helped me with the installation!

Bye,
Michael

[<<] [<] Page 3 of 3 [>] [>>]


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.