Re: Re: [xml] xmllint: validating a document that doesn't specify a DTD

From: Date: Wed, 25 Nov 2009 20:00:44 +0000
Subject: Re: Re: [xml] xmllint: validating a document that doesn't specify a DTD
References: 1 2 3 4 5 6 7 8  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969381159@lists.php.net to get a copy of this message
On Tue, Nov 24, 2009 at 23:52, Daniel Convissor <danielc@analysisandsolutions.com> wrote: > On Tue, Nov 24, 2009 at 04:20:52PM -0500, Rob Richards wrote: > >> I just cant find any decent way to do this. Using that flag just causes >> xmllint to build then doc and then do a validation against the DTD. > > Hmm...  Is it possible to determine the various DTD files required, cat > them together into a temporary file, then pass that temp file to the > --dtdvalid parameter? The validation part isn't the problem, the problem is we need to inject the various &reftitle.parameters;, &reftitle.this.and.that; entities we have into documents like book.xml, without actually referencing the DTD in book.xml. We could do some voodoo to inject a DTD declaration into book/reference/functionname.xml files (and writing it back into tmp.xml during processing or whatever)... I suppose that would be the only way since the dtdvalid only does validation but doesnt actually inject the DTD as I had hoped for :( -Hannes

« previous php.doc (#969381159) next »