MHonArc v2.5.0b2 -->
docbook-tc message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: Re: [docbook-tc] 5.0b1 test test release
From: Jirka Kosek <>
To: Norman Walsh <>
Date: Tue, 25 Oct 2005 22:38:59 +0200
Norman Walsh wrote:
> / Jirka Kosek <> was heard to say:
> | To test whether schema is correct, you can use -f switch of Xerces
> | commandline interface. It will perform full schema checking which
> | discloses UPA violations.
>
> As a variation on the LazyWeb :-)
Very nice service ;-)
>, what's there rest of the invocation
> for Xerces schema processing? I've never figured it out...
You must add xercesSamples.jar into your classpath, there is a simple
sample class called sax.Counter that can be used as a handy CLI for Xerces:
java -cp xercesImpl.jar;xercesSamples.jar sax.Counter -v -s -f doc.xml
The only pity is that you can't specify schema name as a parameter, so
there must be xsi:schemaLocation inside document pointing to schema.
Jirka
BTW: If you could smuggle in something like sax.Counter into JAXP 1.4 I
wouldn't mind :-D It's a shame that in order to validate XML document
on pure Java install you must write your own class or download
standalone Xerces.
--
------------------------------------------------------------------
Jirka Kosek e-mail: http://www.kosek.cz
------------------------------------------------------------------
Profesionální školení a poradenství v oblasti technologií XML.
Podívejte se na náš nově spuštěný web http://DocBook.cz
Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------
Nejbližší termíny školení: DocBook 5.-7.12. * XSL-FO 19.-20.12.
XSLT 17.-20.10. * XML schémata (včetně RELAX NG) 7.-9.11.
------------------------------------------------------------------