[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: "Rick Quatro rick@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 11 Jan 2018 20:51:58 -0000
Re:  XML output ugly
Michele,



It looks like you can use this in your <xsl:output> element:



xalan:line-separator="&#10;"



Rick



From: Michele R Combs mrrothen@xxxxxxx
[mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx]
Sent: Thursday, January 11, 2018 3:46 PM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re:  XML output ugly



Bridger, thanks!!    I still get an extra line in between, but yes, that
information does fix the indenting.  Very cool!  Now if I could just get rid
of that extra lineb&



    <c03>



        <did>



            <unittitle>A. Van Jordan (Poetry)</unittitle>



            <unitid>fv_6680</unitid>



            <unitdate type="inclusive"
normal="2007-02-28">2/28/2007</unitdate>



            <physdesc>



                <extent>DVD</extent>



            </physdesc>



            <container>Box 19</container>



        </did>



    </c03>



For what itbs worth, and in case anyone was wondering, there are no blank
lines or carriage returns or anything in the input document.  Itbs just a
solid block of xml.  So these extra lines are clearly being generated by the
XSLT processor.  I will do some hunting on bxalanb and see if anything
else turns up.



Michele





From: Bridger Dyson-Smith bdysonsmith@xxxxxxxxx <mailto:bdysonsmith@xxxxxxxxx>
[mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx]
Sent: Thursday, January 11, 2018 2:59 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx <mailto:xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re:  XML output ugly



Hi Michele,

I'm not familiar with Filemaker Pro or Xalan, but I did find a Stackoverflow
answer that looks promising[1].

Adding a namespace declaration and a parameter to <xsl:output/> seems work in
the context of question there.

...
xmlns:xalan="http://xml.apache.org/xalan"
exclude-result-prefixes="xalan">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"
xalan:indent-amount="4"/>
...



Hope that's helpful.

Best,

Bridger


[1] https://stackoverflow.com/questions/33766785/pretty-print-xml-file

(by email)

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

EasyUnsubscribe <-list/612310>  (by email <> )

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.