IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  Pretty XML Outputs

    Posted 08/11/09 09:52 AM

    Originally posted by: snutakki


    Currently I am using my output type tree that was generated from a DTD.
    So the output from the map is always wrapped.
    the customer is expecting a well indented pretty looking XML and Mercator is not able to generate it that way unless and until I go and modify each and every element on the type tree to have spaces as the indenting.
    Is there a option somewhere in Mercator so that it generates pretty XML instead of wrapped XML.

    Any help is greatly appreciated.

    thanks,
    cai
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: Pretty XML Outputs

    Posted 08/12/09 07:01 AM

    Originally posted by: phil2030


    Can you throw it through a default XSL transform? That would "pretty print" it. I haven't got TX open, but if memory serves there is an applyxslt or similar in the xml library (haven't used it so don't know if it supports this). Failing that try running it via the java adapter or if your framework supports it, as a post processing step.
    Don't change the generated tree...
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange