[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] formatting attributes

Subject: [xsl] formatting attributes
From: "Ihe Onwuka ihe.onwuka@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 12 Jun 2014 23:25:29 -0000

Have coded a template that outputs an element with 4 attributes

 <elem attr1="{blah}"


and this mirrors the output...that is the attributes are spread over 4
lines for each element.

I wanted one line per element and accomplished this by doing an xmlllint on
the output with the format  flag switched on. However I  was wondering
whether same was not achieveable from XSLT, or will it religiously
replicate the newlines from the template rule.

Current Thread