Alright, I still don't get this. With my latest commit, the generated document is validated .. at generation time, thus, by the plugin... while it's not, when testing. Fails here: XMLUnit.buildDocument(actualParser, new InputSource(actual.openStream())); for both the actual and expected documents, in AbstractXmlGeneratingTestCase.
Has anyone a clue ? Cheers, g On 02/12/05, Grégory Joseph <[EMAIL PROTECTED]> wrote: > Diogo, > > I had left this aside for a while, but remember you advised me on this > subject ! ;-) > I'm about to commit a couple of changes - but my tests still won't > pass. Would you be kind enough to take a look? I've added all the > missing xsd/dtd on which the main ones depend, at least all those i > could see, and I still get the no grammar found errors :-/ > I'll try s'more, but I guess some fresh eyes on this couldn't hurt. > > When it all works, I hope we can somehow factor out some of this dtd > mapping mess out ;) > > Cheers, > > g > > On 01/09/05, Diogo Quintela (EF) <[EMAIL PROTECTED]> wrote: > > If you use XMLOutputValidator(Map) > > I believe you should provide a map that points to *ALL* needed DTD and XSD. > > Not only top ones! > > > > Check <xsd:include schemaLocation="...."/> > > in XSD files and the similar for DTD's > > > > That's why in EjbVersion.fillEntityResolverMap > > I add a couple more xsd's dtd's no directly refered. > > (some of these, if we pull EjbVersion to generama or alike, should be put > > there also, for reuse) > > > > http://www.w3.org/2001/XMLSchema.dtd > > http://www.w3.org/2001/datatypes.dtd > > http://www.w3.org/2001/xml.xsd > > > > Are kinda vulgar and are my primary candidates. > > > > > > I don't really known if that helps, but googling for "Document is invalid: > > no grammar found" gives somes tips. > > > > Regards > > Diogo > > > > > > > > ----------------------------------- > > Diogo Bacelar Quintela > > EF - Tecnologias de Informação, Lda. > > Av. António Serpa, 26 - 4º Dto. > > 1050-027 Lisboa, Portugal > > Tel: (+351) 217 827 800 > > Fax: (+351) 217 827 830 > > Email: [EMAIL PROTECTED] > > PGP: 0xF51A5AB9 > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On Behalf Of > > > Grégory Joseph > > > Sent: quinta-feira, 1 de Setembro de 2005 0:24 > > > To: xdoclet-plugins-interest@lists.sourceforge.net > > > Subject: [xdoclet-plugins-interest] Re: xsd validation > > > > > > Hmm, I also get > > > org.xml.sax.SAXParseException: Document is invalid: no grammar found. > > > at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) > > > at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown > > > Source) > > > at > > > org.custommonkey.xmlunit.XMLUnit.buildDocument(XMLUnit.java:352) > > > at > > > org.generama.tests.AbstractXMLGeneratingPluginTestCase.compare(AbstractXML > > > GeneratingPluginTestCase.java:25) > > > at > > > org.generama.tests.AbstractPluginTestCase.testGenerateContent(AbstractPlug > > > inTestCase.java:29) > > > > > > if I turn validation off. I'm really surprised I didn't get the same > > > kind of errors with the tld plugin. > > > > > > g > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > > Practices > > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > > _______________________________________________ > > > xdoclet-plugins-interest mailing list > > > xdoclet-plugins-interest@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest > > > > > > > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ xdoclet-plugins-interest mailing list xdoclet-plugins-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest