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
Kevin SawyerSubject: Mapping XSD
Author: Kevin Sawyer
Date: 15 Mar 2007 11:37 AM
If I choose to map from an XSD instead of an XML file, I have no data to preview. How do I assoicate sample XML?
Thanks,
Kevin

Postnext
(Deleted User) Subject: Mapping XSD
Author: (Deleted User)
Date: 15 Mar 2007 01:00 PM
Hi Kevin,
you can associate the data to preview by entering the file name in the scenario dialog. If you don't have a sample file you can use the document wizard "XML Schema to XML" as a starting point.

Hope this helps,
Alberto

Postnext
Kevin SawyerSubject: Mapping XSD
Author: Kevin Sawyer
Date: 15 Mar 2007 02:20 PM
Thanks again Alberto.

The implication is that we always start from XML even though it may be fully generated from the underlying XSD. Is that correct?

If so, what happens when the schema changes? Do we regen using the same XML file name?

Kevin

Posttop
(Deleted User) Subject: Mapping XSD
Author: (Deleted User)
Date: 16 Mar 2007 05:14 AM
Hi Kevin,
an XSLT stylesheet must be applied to an XML file, even if you created it by reading an XSD. If you are designing a mapping you can work on data generated by a generator, but in the end you will have to run the conversion on real data.
What happens if the schema changes? Well, if the changes are limited to the location of nodes, or to their cardinality, it could be that the XSLT still works; if the changes are more structural (nodes added/removed/renamed) you will have to change your stylesheet accordingly.

Alberto

 
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.