xsl-list
[Top] [All Lists]

Re: [xsl] XML output ugly

2018-01-11 13:59:00
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

On Thu, Jan 11, 2018 at 2:53 PM, Michele R Combs mrrothen(_at_)syr(_dot_)edu <
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

Hi Adam --



I've got that set in my xsl, but it doesn't seem to matter to FileMaker :P



Apparently FMP uses Xalan as its processor, would that matter?



Michele





-----Original Message-----

From: Adam Retter adam(_dot_)retter(_at_)googlemail(_dot_)com 
[mailto:xsl-list-service@
lists.mulberrytech.com]

Sent: Thursday, January 11, 2018 2:20 PM

To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com

Subject: Re: [xsl] XML output ugly



The serializer usually has a flag for indentation.



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





--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>