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

RE: formatting xml output: inserting newlines between

Subject: RE: formatting xml output: inserting newlines between generated attributes
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 8 Sep 2003 21:25:04 +0100
formatting xml output
> 
> hello,
> I want to be able to generate an xml element using 
> <xsl:element/attribute, 
> etc. such that the output xml file has a newline between each 
> attribute.  my 
> hunch is that this is impossible in current tools b/c xml is 
> content- rather 
> than display- oriented, but I wanted to at least ask.

Many of the open source XSLT processors allow you to write your own
serializer, or to subclass the XML serializer that comes with the
package. So if you really want to do this, it shouldn't be difficult.
But don't expect to be able to customize the output at this level just
by setting a switch.

Michael Kay

> 
> (the usefulness of this feature would be in debugging - for human 
> readability, and also in order to be able to grep on an 
> attribute name and 
> have returned a set of lines that contain only that attribute 
> for a bunch of 
> elements.)
> ***
> an example xml output file would be:
> <a
>    attrib1="val1"
>    attrib2="val2"
>    attrib3="val3"/>
> 
> thanks in advance.
> abie
> 
> _________________________________________________________________
> Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage.  
> http://join.msn.com/?PAGE=features/es
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.