discuss: Question on XML Docbook


Previous by date: 26 Feb 2002 01:10:17 -0000 Re: Looking for some stuff, Girish
Next by date: 26 Feb 2002 01:10:17 -0000 Re: Question on XML Docbook, Gregory Leblanc
Previous in thread: 26 Feb 2002 01:10:17 -0000 Re: Question on XML Docbook, Vivek Venugopalan
Next in thread: 26 Feb 2002 01:10:17 -0000 Re: Question on XML Docbook, Gregory Leblanc

Subject: Re: Question on XML Docbook
From: Dan Scott ####@####.####
Date: 26 Feb 2002 01:10:17 -0000
Message-Id: <1014685793.30439.7.camel@falstaff.66broadway.com>

Unless you have an XML catalog set up, your DOCTYPE declaration isn't
going to work. You need to point to the correct namespace for the
DocBook DTD (that's the "http://docbook.org/xml..." part in the
following declaration):

<?xml version="1.0" standalone="no"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
          "http://docbook.org/xml/4.1.2/docbookx.dtd" [
<!ENTITY colon      "&#x003A;"> <!-- COLON -->
<!ENTITY dollar     "&#x0024;"> <!-- DOLLAR SIGN -->
<!ENTITY mdash      "&#x2014;"> <!-- EM DASH -->
]>
<article id="index">
...
</article>

If you want a good test document to try out your tools, check out the
DB2-HOWTO.xml source and run your xslt transform on it. It was one of
the first HOWTO documents to convert to DocBook XML, and it has been
clean for quite some time (it helps that I haven't touched it for 8
months).

Dan

On Thu, 2002-02-21 at 11:28, Vivek Venugopalan wrote:
> OK.  I didnt know the --docbook switch part.  Thanks
> for the info.  Now I get the following errors can you
> help?  My knowledge of xml is limited so ...
> 
> C:\dbxml\work\validator>xsltproc %DBXSL% validator.xml
> validator.xml:3: error: SystemLiteral " or ' expected
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML
> V4.1.2//EN" [
>                                                       
>          ^
> validator.xml:3: error: xmlParseExternalID: PUBLIC, no
> URI
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML
> V4.1.2//EN" [
>                                                       
>          ^
> validator.xml:11: error: Entity 'pattern-name' not
> defined
> <title>The &pattern-name; Pattern</title>
>                          ^
> validator.xml:40: error: Entity 'pattern-name' not
> defined
> <para>&pattern-name;</para>
>                     ^
> validator.xml:47: error: Entity 'pattern-name' not
> defined
> development effort for creating user interface
> validations.  The &pattern-name;
>                                                       
>                        ^
> unable to parse validator.xml
> --- Gert Dewit ####@####.#### wrote:
> > On Thu, 2002-02-21 at 16:13, Vivek Venugopalan
> > wrote:
> > [snip]
> > 
> > > 
> > > Here is what I get
> > > C:\dbxml\work\validator>xsltproc --docbook %DBXSL%
> > > validator.sgml > out.html
> > > validator.sgml:3: error: docbParseDocTypeDecl :
> > > internal subset not handled
> > > <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook
> > XML
> > > V4.1.2//EN" [
> > 
> > If you're using xml I don't think you should specify
> > --docbook
> > on the xsltproc command line and your file should be
> > xml (maybe
> > you only forgot to change the file extension in the
> > example)
> > 
> > $ xsltproc --help
> > [snip]
> >     --docbook: the input document is SGML docbook
> >                                      ^^^^
> > [snip]
> > 
> > just try :
> > $ xsltproc ${DBXSL} validator.xml > out.html
> > 
> > Greetings,
> > 
> > Gert
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
> 
> _________________________
> http://list.linuxdoc.org/
> 



Previous by date: 26 Feb 2002 01:10:17 -0000 Re: Looking for some stuff, Girish
Next by date: 26 Feb 2002 01:10:17 -0000 Re: Question on XML Docbook, Gregory Leblanc
Previous in thread: 26 Feb 2002 01:10:17 -0000 Re: Question on XML Docbook, Vivek Venugopalan
Next in thread: 26 Feb 2002 01:10:17 -0000 Re: Question on XML Docbook, Gregory Leblanc


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