This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Is this valid DocBook ?
- From: Bob Stayton <bobs at sco dot com>
- To: "Kaiser Christian (RBG - SV C RS CC21)" <Christian dot Kaiser at siemensvdo dot com>
- Cc: 'Oliver Fischer' <plexus at snafu dot de>,CPH <cphennessy at openoffice dot org>, docbook-apps at lists dot oasis-open dot org
- Date: Thu, 21 Aug 2003 10:28:44 -0700
- Subject: Re: [docbook-apps] Is this valid DocBook ?
- References: <E222190107B4D6118C6B0002A5ADA45C03288BAF@rbgs474a.rbgs.ww011.siemens.net>
On Thu, Aug 21, 2003 at 12:48:40PM +0200, Kaiser Christian (RBG - SV C RS CC21) wrote:
> | Did you try an validator like xmllint?
> |
> | CPH wrote:
> | > Hi,
> | > Is the fragment below valid docbook xml ?
> | > <article>
> | > <para>how can i help</para>
> | > <variablelist>
> | > <listitem>
> | > <para>Please read this FAQ first</para>
> | > </listitem>
> | > <listitem>
> | > <para>Send an email to the users@openoffice.org
> | > list with all relevant info including which operation
> | system you use, which
> | > version of that operating system, which version of
> | OpenOffice you use and any
> | > other relevant info.</para>
> | > </listitem>
> | > </variablelist>
> | > </article>
> | >
> | > And what is the best way for me to make sure that this is
> | valid docbook ?
> | >
> | > Thanks
> | > CPH
>
> May be valid,
It isn't. The variablelist content model uses
varlistentry and term elements. See the examples in:
http://docbook.org/tdg/en/html/variablelist.html
> as parser you can use xerces (http://apache.org).
> Create a batch or shell script containing the following
>
> set CLASSPATH=%XMLTOOLS%\xerces\xercesImpl.jar;%CLASSPATH%
> set CLASSPATH=%XMLTOOLS%\xerces\xml-apis.jar;%CLASSPATH%
> set CLASSPATH=%XMLTOOLS%\xerces\xmlParserAPIs.jar;%CLASSPATH%
> set CLASSPATH=%XMLTOOLS%\xerces\xercesSamples.jar;%CLASSPATH%
> java sax.Counter %1
>
> where XMLTOOLS ist is the environment variable that definnes
> the path to your tools. You might place FOP and XALAN here
> as well.
Actually, you forgot the -v option to turn on validation:
java sax.Counter -v %1
By default, it doesn't not validate.
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org