XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Simon TemplarSubject: Formatting problems through command-line
Author: Simon Templar
Date: 06 Sep 2005 07:11 AM
Hi,
I am currently applying XSLT and validating XML file via command line (batch script). Then I need to transfer the file to mainframe with the formatting and indentations still intact. But I can't do that without first opening the file in Stylus Studio IDE and then using the Indent XML Tags option and then transferring them to mainframe, in which case the file looks fine. After the command-line process when I open the file in Stylus Studio IDE, it is not indented and therefor I can't get a well-structured(indented) file. I do not have the option of opening the IDE as this is going to be an automated process running on a server. I have following questions:
1. How can I use that Indent XML Tags option on command-line to get the correct indentations?
2. Is there any other way or option to be used at command-line to get the above result?

Regards.

Postnext
Tony LavinioSubject: Formatting problems through command-line
Author: Tony Lavinio
Date: 06 Sep 2005 09:27 AM
If you add the indent option to your xsl:output element, as in
<xsl:output indent="yes"/>
you should get properly indented output from your XSLT script,
and not have to use the IDE to indent.

Posttop
Simon TemplarSubject: Formatting problems through command-line
Author: Simon Templar
Date: 06 Sep 2005 11:28 AM
>If you add the indent option
>to your xsl:output element, as
>in
><xsl:output
>indent="yes"/>
>you should get properly
>indented output from your XSLT
>script,
>and not have to use the IDE to
>indent.
Many thanks Tony, that did the trick. There's so much to explore in SS and so little time at hand!

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.