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


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-apps] Discard leading/trailing whitespace in <title> elements?


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


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