This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook] Question about prettyprinting Docbook documents and character entities


Taro Ikai wrote:

> I am having a few problems prettyprinting my Docbook documents.

You mean you are using it for HTML documents generated from DocBook documents? If you use it for DocBook documents you are abusing Tidy AFAIK.

> I am using Cygwin distribution of Tidy.
[...]

Regarding problems with Tidy, I'd ask the Tidy people.

> Is there another tool I can use to prettyprint XML?

xmllint --format might work for you.

check
http://www.pinkjuice.com/howto/vimxml/setup.xml#xmllint
http://www.pinkjuice.com/howto/vimxml/tasks.xml#prettyprinting

If you encounter issues with xmllint, report them at http://xmlsoft.org/bugs.html .

Alternatively, you could use a good XSLT processor such as Saxon; especially recent (XSLT 2) versions offer some useful options for the tasks you describe.

BTW: This type of topic is not really appropriate for
docbook@lists.oasis-open.org .

Please ask tool related questions on
docbook-apps@lists.oasis-open.org
http://docbook.org/wiki/moin.cgi/DocBookAppsMailingList ,
not on docbook@lists.oasis-open.org .

Tobi

--
http://www.pinkjuice.com/


--------------------------------------------------------------------- To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]