Re: [xml] passing the FPI to the DTD validator

On Sun, Aug 17, 2003 at 12:23:12PM +0200, Tobias Reif wrote:
So I'd like to pass the FPI to xmllint, and expect it to resolve it as 
it would do when reading the FPI from a doctype declaration.

Is this already possible? Otherwise perhaps the following would make sense:
(the name of the option is not relevant here)

:%w !xmllint --dtdvalidfpi "-//OASIS//DTD DocBook XML V4.2//EN" --noout -
[one line]

This would work on any system having a catalog which includes the 
corresponding DTD, the location of the DTD file doesn't matter.

  Use the canonical URL instead of a path in your filesystem for the
DTD this will work with the dtdvalid option assuming your catalogs
are properly constructed to remap the canonical URL to your local
installation path.


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]