[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML pretty printer

Subject: Re: XML pretty printer
From: Eliot Kimber <ekimber@xxxxxxxxxxxx>
Date: Tue, 27 Sep 2011 22:01:58 -0500
Re:  XML pretty printer
XML is text, so strictly speaking, it wouldn't be a lie.

Cheers,

E.

On 9/27/11 10:59 PM, "Liam R E Quin" <liam@xxxxxx> wrote:

> On Tue, 2011-09-27 at 04:39 -0700, John Christopher wrote:
>
>> My data only contains elements with attributes
>> and no CDATA or PCDATA.
>
> Well, you have CDATA in your attribute values, strictly speaking :-) but
> I think you mean no element content.
>
> (I hope you don't plan to localise this to Japanese!)
>
>> If my data *did* contain CDATA or PCDATA, the
>> formatter should leave the data alone, but
>> properly indent the surrounding tags.
>
> I think an example was already posted that will probaly do what you
> need; if not, it's a case of modifying the "identity transform" to treat
> the attributes specially. You will need to lie and say you are
> generating text, not XML, of course.
>
> Liam
>
> --
> Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
> Pictures from old books: http://fromoldbooks.org/
>

--
Eliot Kimber
Senior Solutions Architect
"Bringing Strategy, Content, and Technology Together"
Main: 512.554.9368
www.reallysi.com
www.rsuitecms.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.