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
Matt AllenSubject: Saving a Converted XML as an XML
Author: Matt Allen
Date: 24 Feb 2022 06:22 PM
Hi

I want to convert XML files I have to a standard I have been given using XSD.

I have opened an XML in Stylus.

I have mapped the elements of this XML to an XSD in stylus.

I have run the debugging and generated a preview.

How do I now save the converted file as a new formatted XML based on the mapping to the XSD I have done?

Thanks

Postnext
Ivan PedruzziSubject: Saving a Converted XML as an XML
Author: Ivan Pedruzzi
Date: 24 Feb 2022 09:12 PM
You can configure the output URL in the scenario dialog where the transformation result is saved at every execution.

To open the scenario dialog click on button "..." in the XSLT editor toolbar

You can learn more in the Online Help, press F1 then navigate to

Chapter 6 "Creating XSLT using the XSLT Mapper"
--- Creating an XSLT Scenario

Ivan Pedruzzi
Stylus Studio Team

Postnext
Matt AllenSubject: Saving a Converted XML as an XML
Author: Matt Allen
Date: 25 Feb 2022 01:28 PM
Hi

Many thanks for your reply. I did manage to create an XML but it was only of the preview and not all the content in the original XML, any reason this could be happening?

Also, the new XML structure was flat (single continuous line) and not in a tree format per the XSD I mapped to, any reason for this?

Thanks

Postnext
Ivan PedruzziSubject: Saving a Converted XML as an XML
Author: Ivan Pedruzzi
Date: 25 Feb 2022 07:40 PM

Have you read the product documentation?


Have you look at the video tutorials?

http://www.stylusstudio.com/videos/xquery1/xquery1.html
http://www.stylusstudio.com/videos/xsltedit1/xsltedit1.html


Ivan Pedruzzi
Stylus Studio Team

Posttop
Bruce CantorSubject: Saving a Converted XML as an XML
Author: Bruce Cantor
Date: 28 Mar 2022 01:30 PM
Hi

If you want to see the XML as a 'tree' you need to specify the tag at the top of the stylesheet

<xsl:output indent="yes" />

This pretty prints the document into something that is easier to read for humans.

 
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.