discuss: tidy
Subject:
Re: tidy
From:
Dan York ####@####.####
Date:
19 Nov 2001 20:26:22 -0000
Message-Id: <20011119152110.B966@e-smith.com>
jdd,
> is there a docbook validator/editor as is tidy for html? I try to keep on
> with emacs, but all these tags are very intimidating.
Daniel Veillard created 'xmllint' as part of his 'libxml2' package available
from http://xmlsoft.org/
I have used it to tidy up XML files using:
xmllint --format input.xml > output.xml
I have seen from his changelogs that xmllint supports DocBook SGML, but
I have not used it myself for DocBook SGML validation/formatting. I do
see that he has a '--sgml' flad in his command-line options:
[dyork@burrito mitel]$ xmllint --help
Unknown option --help
Usage : xmllint [options] XMLfiles ...
Parse the XML files and output the result of the parsing
--version : display the version of the XML library used
--debug : dump a debug tree of the in-memory document
--shell : run a navigating shell
--debugent : debug the entities defined in the document
--copy : used to test the internal copy implementation
--recover : output what was parsable on broken XML documents
--noent : substitute entity references by their value
--noout : don't output the result tree
--htmlout : output results as HTML
--nowrap : do not put HTML doc wrapper
--valid : validate the document in addition to std well-formed check
--postvalid : do a posteriori validation, i.e after parsing
--dtdvalid URL : do a posteriori validation against a given DTD
--timing : print some timings
--repeat : repeat 100 times, for timing or profiling
--insert : ad-hoc test for valid insertions
--compress : turn on gzip compression of output
--sgml : use the DocBook SGML parser
--html : use the HTML parser
--push : use the push mode of the parser
--memory : parse from memory
--nowarning : do not emit warnings from parser/validator
--noblanks : drop (ignorable?) blanks spaces
--format : reformat/reindent the input
--testIO : test user I/O support
--encode encoding : output in the given encoding
--catalogs : use the catalogs from $SGML_CATALOG_FILES
otherwise /etc/xml/catalog is activated by default
--nocatalogs: deactivate all catalogs
--auto : generate a small doc on the fly
--xinclude : do XInclude processing
--loaddtd : fetch external Dtd
--dtdattr : loaddtd + populate the tree with inherited attributes
[dyork@burrito mitel]$
--
Dan York, Director of Training, Network Server Solutions Group
Mitel Networks Corporation ####@####.####
Ph: +1-613-751-4401 Cell: +1-613-263-4312 Fax: +1-613-564-7739
150 Metcalfe Street, Suite 1500, Ottawa,ON K2P 1P1 Canada
http://www.e-smith.com/ http://www.mitel.com/sme/