[ grinder-Feature Requests-3389028 ] XSLTHelper API to control indent

SourceForge.net <[email protected]> Tue, 04 Oct 2011 16:32:30 +0100
Newsgroups gmane.comp.java.grinder.devel
Message-ID <[email protected]>
Feature Requests item #3389028, was opened at 2011-08-09 14:59
Message generated for change (Comment added) made by philipa
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=368598&aid=3389028&group_id=18598

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: TCPProxy
Group: None
>Status: Pending
Priority: 3
Private: No
Submitted By: Jean-Francois Poilpret (jfpoilpret)
Assigned to: Philip Aston (philipa)
Summary: XSLTHelper API to control indent

Initial Comment:
So far I have used TCPProxy with my own XSLT transform (based on Grinder provided xslt) for generating python scripts.
I see that all generated scripts use a 2 spaces indent which I find a bit difficult to work with in an editor.

I think it would be good to add a few methods to XSLTHelper API so that we can:
- change the size of an indent
- set the indent character to either space or tab

Thus, I could call the new API early in my XSLT and then have the indent I want for my generated scripts (personally, I would use either one tab or 4 spaces).

One possible API could be:

XSLTHelper.setIndentString(String indent)

which offers the most flexibility, but would also allow anything used as a possible indent...

----------------------------------------------------------------------

>Comment By: Philip Aston (philipa)
Date: 2011-10-04 16:32

Message:
Implemented for next release:
http://grinder.git.sourceforge.net/git/gitweb.cgi?p=grinder/grinder;a=commit;h=66436b0afe37e280f633ee27c1b439e0aa0f8347

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=368598&aid=3389028&group_id=18598

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1