This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Discard leading/trailing whitespace in <title> elements?
- From: Sean Wheller <sean at enbaya dot co dot za>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 30 Mar 2005 08:18:28 +0200
- Subject: Re: [docbook-apps] Discard leading/trailing whitespace in <title> elements?
- Organization: Enbaya
- References: <BE6F0459.1C79%paul@kitebird.com>
On Tuesday 29 March 2005 21:10, Paul DuBois wrote:
> My "validating editor" is vi. :-)
>
> It's easy for me to produce <title>xxx</title> rather than
> <title>
> ?xxx
> </title>. ?(A simple change to one of my xmlformat rules.) ?I was just
> curious whether this could be done in XSLT without a lot of messing around.
> Seems the answer is no.
But there is a good point worth exploring in all of this. Why do people try to
format XML in blocks such as
<para>
Some text here.
</para>
Seems unnecessary to me.
1. It add whitespace that is not required.
2. IMHO, It makes reading the XML and content harder.
3. It is hard to keep the formatting of the XML indent consistant.
Why not just use <para>Some text here.</para>?
--
Sean Wheller
Technical Author
sean@inwords.co.za
http://www.inwords.co.za
Registered Linux User #375355