Subject: Re: xmllint -format, xsltproc and CDATA section
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 28 Aug 2003 16:23:00 +0100
|
> a tool that indents a document without changing its semantics.
> Is there no such tool by definition?
The only way (in general) to reformat an XML file without changing its
semantics is to add the extra whitespace _inside_ the tags not in
element content.
so
you can change
<a>bbbb</a>
to
<a
>bbbb</a
>
which is sometimes useful (James Clark's sp suite tends to use that
style) although not everyone likes the result.
indenting elements (as used for example in xsl:output indent="yes")
will in general change the document, which is why it is not on by
default in xml output (but is for html output).
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- RE: xmllint -format, xsltproc and CDATA section, (continued)
- Michael Kay - Thu, 28 Aug 2003 04:16:48 -0400 (EDT)
- Daniel Veillard - Thu, 28 Aug 2003 05:24:35 -0400 (EDT)
- Taro Ikai - Thu, 28 Aug 2003 11:27:58 -0400 (EDT)
- Taro Ikai - Thu, 28 Aug 2003 10:55:37 -0400 (EDT)
- David Carlisle - Thu, 28 Aug 2003 11:24:21 -0400 (EDT) <=
- Wendell Piez - Thu, 28 Aug 2003 15:36:46 -0400 (EDT)
- Michael Kay - Thu, 28 Aug 2003 18:37:00 -0400 (EDT)
- David Carlisle - Thu, 28 Aug 2003 05:30:13 -0400 (EDT)
|
|