cvs commit: ports/security/vuxml vuln.xml
Jason Helfman
jgh at FreeBSD.org
Fri Jun 1 05:37:46 UTC 2012
On Thu, May 31, 2012 at 06:02:51PM -0700, Doug Barton thus spake:
>> 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
>
Originally, I had raised the question that there were various cite tags
that should also be referenced also as a url tag, and thought that there
was an exiting tool, or something with 'make validate' that could verify
that they in fact were noted in both fields.
Various pokes by eadler had raised this as a question on my part.
-jgh
--
Jason Helfman
FreeBSD Committer | http://people.freebsd.org/~jgh | The Power To Serve
More information about the freebsd-doc
mailing list