Unfortunetly switching to the SYSTEM id did not help.
The only mail I found is the following but I am not sure whether it
means there is a solution or not :

List:     xindice-dev
Subject:  Re: XSD or DTD validation?
From:     Murray Altheim <[EMAIL PROTECTED]>
Date:     2002-01-03 6:55:25
[Download message RAW]

Jerry Wang wrote:
> > Any plan to support XSD or DTD validation when creating or updating
document? I
> think it will be good for example we bound each collection with an XSD
or DTD.

This is the type of thing that is done on an application-by-application
basis, and would be appropriately established by the parser factory
that creates the XML parser used to provide DOM nodes from a processed
XML document instance. It's not necessary to provide this service within
Xindice itself since this is an application decision everyone must make
anyway. Our project (for example) doesn't require valid content so we
use a well-formed parser, but it'd be a one line change (or perhaps use
of a command-line parameter if you wanted that flexibility) to create a 
validating parser instead.

Murray

...........................................................................
Murray Altheim                        
<mailto:murray.altheim&#x40;sun.com>
XML Technology Center, Java and XML Software
Sun Microsystems, Inc., MS MPK17-102, 1601 Willow Rd., Menlo Park, CA
94025

               Rally against the evils of iceburg lettuce! 
            Grab a kitchen knife and join the Balsamic Jihad!





le mar 05-02-2002 � 15:26, Anders Conrad a �crit :
> Hello Philippe.
> 
> There is not a lot of support in Xindice for DTD's. Using a Public ID such
> as yours might not work. However, I succesfully loaded lots of documents
> referring the DTD through a System Id such as
> <!DOCTYPE DIPLOM SYSTEM "http://dipdan.dsl.dk/cocoon/diplo/dtd/diplo.dtd";>
> 
> I also seem to remember that the URL could not just be a simple file
> reference, you could try to look up the mail archive for this list where
> there is a number of mails discussing the issue.
> 
> Hope that helps
> 
> Anders
> 
> ----- Original Message -----
> 
> From: "Philippe NAEL" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Tuesday, February 05, 2002 2:07 PM
> Subject: Re: Can not add XML document to a dbXML collection
> 
> 
> Actually I found out why I get the error message but I don't understand
> why. It seems that dbXML dos not like the tag <!DOCTYPE>
> 
> The following does not work :
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
> "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd";>
> <article>
> <title>Main article title</title>
> ...
> </article>
> 
> but this one works fine :
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <article>
> <title>Main article title</title>
> ...
> </article>
> 
> So is it possible to store valid XML document (using a DTD) in dbXML ?
> Thanks
> Philippe
> 
> 
> le mar 05-02-2002 � 13:00, Carsten Ziegert a �crit :
> > Phil,
> >
> > dbXML / Xindice needs the line
> >
> > <?xml version="1.0"?>
> >
> > in each document.
> >
> >
> > Carsten
> >
> >
> > Am 05.02.2002 11:13 Uhr schrieb "Philippe NAEL" unter
> > <[EMAIL PROTECTED]>:
> >
> > > Hello,
> > >
> > > I am new to this mailing and I hope it is the right place for the
> > > following question.
> > >
> > > I am currently trying to add a docbook article to a dbXML v1.0b4 server.
> > > I created a collection called Phil :
> > >
> > > [EMAIL PROTECTED]:~$ /usr/local/dbXML/bin/dbxmladmin lc -c /db
> > >
> > > root
> > > addressbook
> > > Phil
> > > system
> > >
> > > Total collections: 4
> > >
> > >
> > > When I add a document I get the following :
> > >
> > > [EMAIL PROTECTED]:~$ /usr/local/dbXML/bin/dbxml ad -c /db/Phil -f
> > > /wesdev/temp/sample2.dbk -n sample2.dbk -v
> > > ERROR : Collection Document Malformed
> > > Document name = sample2.dbk
> > > org.xmldb.api.base.XMLDBException: Collection Document Malformed
> > > at org.dbxml.core.FaultCodes.createXMLDBException(FaultCodes.java:230)
> > > at
> > >
> org.dbxml.client.xmldb.CollectionImpl.storeResource(CollectionImpl.java:510)
> > > at org.dbxml.tools.command.AddDocument.execute(AddDocument.java:120)
> > > at org.dbxml.tools.XMLTools.execute(XMLTools.java:320)
> > > at org.dbxml.tools.XMLTools.process(XMLTools.java:249)
> > > at org.dbxml.tools.XMLUserTools.main(XMLUserTools.java:90)
> > >
> > > The document is attached to this mail. It seems to be wellformed (IE 5.5
> > > and rxp are ok with it). I managed to store it in a eXist XML database.
> > > Any help would be fine.
> > > Thanks.
> > >
> >
> > --
> > Carsten Ziegert
> > Fachhochschule Hannover
> > FB Informations- und Kommunikationswesen
> > Ricklinger Stadtweg 120
> > 30459 Hannover
> > ++49-511-9296-768
> > http://summit-bmt.fh-hannover.de
> >
> >
> >
> --
> WEBEDISOFT - The Instant Collaboration Company
> T�l : 02 97 35 30 26
> Fax : 02 97 35 30 31
> 
> 
> 
-- 
WEBEDISOFT - The Instant Collaboration Company
T�l : 02 97 35 30 26
Fax : 02 97 35 30 31


Reply via email to