Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2012 18:02:51 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Warren Block <wblock@wonkity.com>
Cc:        Thierry Thomas <thierry@FreeBSD.org>, freebsd-doc@FreeBSD.org, Eitan Adler <eadler@FreeBSD.org>, Jason Helfman <jgh@FreeBSD.org>, wblock@FreeBSD.org
Subject:   Re: cvs commit: ports/security/vuxml vuln.xml
Message-ID:  <4FC814BB.90507@FreeBSD.org>
In-Reply-To: <alpine.BSF.2.00.1205311405010.83987@wonkity.com>
References:  <201205302046.q4UKka2f062416@repoman.freebsd.org> <CAF6rxgnqRU5J=B5KDvm_h1XE9fQ3FzOEqUMWQnLL7XN7SrWnOg@mail.gmail.com> <20120530222837.GA94334@dormouse.experts-exchange.com> <CAF6rxgnuTQwXHi09yczTrQwEtCAk16UjFFEtYVsJ2LoL2aaJ4g@mail.gmail.com> <CAMuy=%2BjOSurM7x4fekC6%2BsHp2ovJCyK%2BHXdb8_ADtywRuEyQBA@mail.gmail.com> <alpine.BSF.2.00.1205311023290.83108@wonkity.com> <4FC7BDE9.40602@FreeBSD.org> <alpine.BSF.2.00.1205311405010.83987@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> On Thu, 31 May 2012, Doug Barton wrote:
> 
>> On 05/31/2012 09:28 AM, Warren Block wrote:
>>> Sorry, I missed the original post and am not quite sure what is being
>>> checked.  At present, igor doesn't know XML at all.  My hope is that
>>> some existing XML validator can be used to check tagging and indentation
>>> of DocBook XML, and igor can just check for documentation-specific
>>> problems.
>>
>> xmllint does a pretty good job of validation. Not sure how much it helps
>> with indentation, but it's a good place to start.

To amplify that slightly, since "The Fine Manual" leaves something to be
desired ...

xmllint --noout --dtdvalid http://www.vuxml.org/dtd/vuxml-1/vuxml-11.dtd
vuln.xml

is what you want to validate that the file matches the DTD (the current
version passes). There is no way to use xmllint to "validate the
whitespace," but you could theoretically use the --format option as part
of 'make validate'. Note, that would require a one-time commit to change
the current format into what --format outputs, since they are pretty
dramatically different.

hth,

Doug

-- 

    This .signature sanitized for your protection



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FC814BB.90507>