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

Re: XML output ugly

Subject: Re: XML output ugly
From: "Adam Retter adam.retter@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 11 Jan 2018 19:19:34 -0000
Re:  XML output ugly
The serializer usually has a flag for indentation.

If you are using XSLT you can use <xsl:output indent="yes"/>

On 11 January 2018 at 18:45, Michele R Combs mrrothen@xxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> Hi all --
>
>
>
> I'm currently getting XML output that looks like this:
>
>
>
> <c03>
>
> <did>
>
> <unittitle>#1 Complete - 4/8/1964</unittitle>
>
> <unitid>spock_b_323</unitid>
>
> <unitdate type="inclusive" normal="1964-04-08">04/08/1964</unitdate>
>
> <physdesc>
>
> <extent>1/4 inch audio tape</extent>
>
> </physdesc>
>
> <container>Box 548</container>
>
> </did>
>
> </c03>
>
>
>
> I want it to look pretty, like this:
>
>
>
> <c03>
>
>    <did>
>
>       <unittitle>#1 Complete - 4/8/1964</unittitle>
>
>       <unitid>spock_b_323</unitid>
>
>       <unitdate type="inclusive" normal="1964-04-08">04/08/1964</unitdate>
>
>       <physdesc>
>
>          <extent>1/4 inch audio tape</extent>
>
>       </physdesc>
>
>       <container>Box 548</container>
>
>    </did>
>
> </c03>
>
>
>
> The weird thing is, the output seems to be different depending on the XSL
> processor.  When I run it manually using Saxon, it comes out the second way
> (pretty).  When I hook it up to our FileMaker Pro database and it gets run
> by FMP as part of an export process, it comes out the first way (ugly).
>
>
>
> Any ideas on how to bforceb the pretty output?
>
>
>
> Michele
>
> +++++++++
>
> Michele Combs | Lead Archivist
>
> Special Collections Research Center
>
> Syracuse University Libraries
>
> 222 Waverly Ave
>
> Syracuse, New York 13244
>
> t 315.443-2081 | e mrrothen@xxxxxxx | w scrc.syr.edu
>
> SYRACUSE UNIVERSITY
>
> syr.edu
>
>
>
>
>
> XSL-List info and archive
> EasyUnsubscribe (by email)



--
Adam Retter

skype: adam.retter
tweet: adamretter
http://www.adamretter.org.uk

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.