|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: formatting xml output: inserting newlines between
> > 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








