OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] How to tidy/nice XML?


On Tue, Jul 15, 2008 at 09:25:27PM +0700, Euis Luhuanam wrote:
> Hi,
> 
> What tools are available to tidy the XML document?
> I am considering to use ''tidy''; but could not find
> examples in the manual.
> 
> I have two problems when using ''tidy -i -w 70 -xml":
> First, it will screw <programlisting> . Is there any
> tidy option to ignore this?
> 
> Second, somehow ''tidy'' will joint </foreignphrase> with
> the next word. What is the REGEX for splitting
> from ''</foreignphrase>and'' to ''</foreignphrase>[SPACE]and''?
> 
> I can find ''</foreignphrase>a'' with ''/<\/\w+>\w/'' but I have no
> idea on how to split it!?
> 
> Any clue?

Adding the attribute xml:space="preserve" to an element tells the XML
processor to leave the white space as it is. Although not all XML
processors respect that attribute.

http://www.w3.org/TR/2000/REC-xml-20001006#sec-white-space

-- 
Michiel "elmuerte" Hendriks             elmuerte@drunksnipers.com
                                              http://elmuerte.com
BibTeX to Docbook 5                http://sf.net/projects/bib2db5
xslthl 2.x                          http://sf.net/projects/xslthl


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]