Register  Login       Search  
Forum  
 
  
 
Forum  Forum     
 
SearchForum Home
  XML Lab Products  nxslt  NXSLT2: -mo opt...
 NXSLT2: -mo option always results in XML output on a single line
 
DarenM
1 posts
Joined
12/29/2005

NXSLT2: -mo option always results in XML output on a single line
Posted: 29 Dec 05 11:59 AM (United States)

Hi,

Whenever I run NXSLT2 with the -mo option, the resultant XML output is rendered on a single line as opposed to the indented output when run without that option. Is there a particular reason for this, and if so, would it be possible to include an option to "pretty print" the output.  I am running:

.NET 2.0 XSLT command line utility, version 2.0.1
(c) 2004-2005 Oleg Tkachenko, http://www.xmllab.net
Running under .NET 2.0.50727.42

Thanks,

Daren

olegt
85 posts
www.xmllab.net
Joined
2/25/2005

Re: NXSLT2: -mo option always results in XML output on a single line
Posted: 09 Jan 06 3:25 AM (Israel)

Yes, that's known limitation. Happily in .NET 2.0 it's finally become possible to overcome it. I fixed this and will release fixed version once I finish with other bug reports.

In the meantime you can either checkout sources from CVS repository or use the following trick:

nxslt2 source.xml style.xslt -mo | nxslt2 - -pp -xi

Thanks for reporting this!


Oleg Tkachenko, Microsoft MVP for XML, MCPD
http://www.XmlLab.Net | http://blog.tkachenko.com
  XML Lab Products  nxslt  NXSLT2: -mo opt...
Forum Home  Search