docbook: Thread: URL not supported by this version


[<<] [<] Page 1 of 1 [>] [>>]
Subject: URL not supported by this version
From: "Sarah Haff" ####@####.####
Date: 28 Oct 2003 02:51:33 -0000
Message-Id: <BAY9-F16BRuUInMLPiH00067853@hotmail.com>

Hi,

I am trying use the onsgmls to validate the a document against the DocBook 
XML DTD v4.2 using onsgmls

#onsgmls -v
onsgmls:I: "OpenSP" version "1.5"

# onsgmls -c /usr/share/sgml/docbook/docbook-xml-4.2/docbook.cat  -s 
testdoc.xml

But I get the following error msg:

onsgmls:testdoc.xml:2:103:E: URL not supported by this version
onsgmls:testdoc.xml:2:103:E: DTD did not contain element declaration for 
document type name

Here is my doctype decleration:
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 
"http://docbook.org/xml/4.2/docbookx.dtd">


If I use a system path instead of a URL, everything works fine.

Any ideas on how to make it work with URLs?

Thanks.
Sarah

_________________________________________________________________
Enjoy MSN 8 patented spam control and more with MSN 8 Dial-up Internet 
Service.  Try it FREE for one month!   http://join.msn.com/?page=dept/dialup

Subject: Re: URL not supported by this version
From: Tabatha Marshall ####@####.####
Date: 28 Oct 2003 08:31:29 -0000
Message-Id: <1067330133.24434.38.camel@mysticchild>

On Mon, 2003-10-27 at 18:51, Sarah Haff wrote:
> I am trying use the onsgmls to validate the a document against the DocBook 
> XML DTD v4.2 using onsgmls
> 
> #onsgmls -v
> onsgmls:I: "OpenSP" version "1.5"

I checked my version (on RH8) and mine's even worse: 1.3.4!

> Here is my doctype decleration:
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 
> "http://docbook.org/xml/4.2/docbookx.dtd">

> If I use a system path instead of a URL, everything works fine.
> 
> Any ideas on how to make it work with URLs?

Is it possible for you to use xml tools instead (maybe something is
already installed on your system for that)?  When I check xml documents,
rather than onsgmls, I use xmlproc_parse (included in RH8).
 
Syntax:  xmlproc_parse file.xml
If you have multiple files for the book:  xmlproc_parse *.xml 

The command will find the dtd in the first file, and seems to be fine
with the url to docbookx.dtd.  This is much handier than onsgmls for me
when working on a book that has other files included as entities in the
main xml file.  I've always found that with onsgmls I have to paste in
the doctype definition at the beginning if I'm working with a
multiple-file book.  Big pain.

Hope that helps a little!

Tab


-- 
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: URL not supported by this version
From: Saqib Ali ####@####.####
Date: 28 Oct 2003 15:17:02 -0000
Message-Id: <Pine.GSO.4.55.0310280658430.25427@sjgcs1.stsj.seagate.com>

Hello Tabatha,

(i think) xmlproc_parse just check if the document is well-formed or not.
It does not validate against the docbook DTD to see if the tags being used
in the document are valid or not. (correct me if I am wrong)

there is xmlproc_val which I haven't used.

In Peace,
Saqib Ali
---------
http://validate.sf.net <--- XHTML/HTML/DocBook Validator

On Tue, 28 Oct 2003, Tabatha Marshall wrote:

> On Mon, 2003-10-27 at 18:51, Sarah Haff wrote:
> > I am trying use the onsgmls to validate the a document against the DocBook
> > XML DTD v4.2 using onsgmls
> >
> > #onsgmls -v
> > onsgmls:I: "OpenSP" version "1.5"
>
> I checked my version (on RH8) and mine's even worse: 1.3.4!
>
> > Here is my doctype decleration:
> > <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
> > "http://docbook.org/xml/4.2/docbookx.dtd">
>
> > If I use a system path instead of a URL, everything works fine.
> >
> > Any ideas on how to make it work with URLs?
>
> Is it possible for you to use xml tools instead (maybe something is
> already installed on your system for that)?  When I check xml documents,
> rather than onsgmls, I use xmlproc_parse (included in RH8).
>
> Syntax:  xmlproc_parse file.xml
> If you have multiple files for the book:  xmlproc_parse *.xml
>
> The command will find the dtd in the first file, and seems to be fine
> with the url to docbookx.dtd.  This is much handier than onsgmls for me
> when working on a book that has other files included as entities in the
> main xml file.  I've always found that with onsgmls I have to paste in
> the doctype definition at the beginning if I'm working with a
> multiple-file book.  Big pain.
>
> Hope that helps a little!
>
> Tab
>
>
> --
> 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)
>
>
> ______________________
> http://lists.tldp.org/
>
>
Subject: Re: URL not supported by this version
From: Tabatha Marshall ####@####.####
Date: 28 Oct 2003 22:08:51 -0000
Message-Id: <1067379171.25154.19.camel@mysticchild>

On Tue, 2003-10-28 at 07:03, Saqib Ali wrote:
> (i think) xmlproc_parse just check if the document is well-formed or not.
> It does not validate against the docbook DTD to see if the tags being used
> in the document are valid or not. (correct me if I am wrong)

Actually, I think it does check the tags.  Either that or it's because I
use Xemacs with the psgml plugin (which gives me a menu command to check
next trouble spot within a parsed xml doc, along with all the other
handy sgml/xml menu tools).

> there is xmlproc_val which I haven't used.

Me either.  I think that between XEmacs/psgml and xmlproc_parse, I got
it covered for xml.  Otherwise, I guess we'll need more suggestions!

Tab

> On Tue, 28 Oct 2003, Tabatha Marshall wrote:
> 
> > On Mon, 2003-10-27 at 18:51, Sarah Haff wrote:
> > > I am trying use the onsgmls to validate the a document against the DocBook
> > > XML DTD v4.2 using onsgmls
> > >
> > > #onsgmls -v
> > > onsgmls:I: "OpenSP" version "1.5"
> >
> > I checked my version (on RH8) and mine's even worse: 1.3.4!
> >
> > > Here is my doctype decleration:
> > > <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
> > > "http://docbook.org/xml/4.2/docbookx.dtd">
> >
> > > If I use a system path instead of a URL, everything works fine.
> > >
> > > Any ideas on how to make it work with URLs?
> >
> > Is it possible for you to use xml tools instead (maybe something is
> > already installed on your system for that)?  When I check xml documents,
> > rather than onsgmls, I use xmlproc_parse (included in RH8).
> >
> > Syntax:  xmlproc_parse file.xml
> > If you have multiple files for the book:  xmlproc_parse *.xml
> >
> > The command will find the dtd in the first file, and seems to be fine
> > with the url to docbookx.dtd.  This is much handier than onsgmls for me
> > when working on a book that has other files included as entities in the
> > main xml file.  I've always found that with onsgmls I have to paste in
> > the doctype definition at the beginning if I'm working with a
> > multiple-file book.  Big pain.
> >
> > Hope that helps a little!
> >
> > Tab
> >
> >
> > --
> > 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)
> >
> >
> > ______________________
> > 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)

[<<] [<] Page 1 of 1 [>] [>>]


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