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 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Robert HeintzSubject: Create mapping based on destination XSD?
Author: Robert Heintz
Date: 12 Oct 2007 10:09 AM
Hello

I need to create the XSLT mapping without having a complete XML file.
I have a source and destination XSD, no more.

I tried to create an XML from the destination XSD.
When I set the target doc to that file I get no sequences. For that I have to manually add at least 2 elements for every sequence!?

What did I miss?
IMHO it must be possible to create the mapping just based on the target XSD. Only when I want to run the transform do I need to specify an output file.
And that brings me to question #2.

Having created a style sheet, what do I have to change to be able run the transform from the commandline with a runtime specified output file?

Thanks for any help

Postnext
(Deleted User) Subject: Create mapping based on destination XSD?
Author: (Deleted User)
Date: 12 Oct 2007 11:38 AM
Hi Robert,
you can use just the XSD as both source and target in a Mapper transformation; what you need is an XML document to be used as input when previewing the transformation.
As for the XML generated from the XSD not having multiple items, could you post the XSD schema you are using?

Thanks,
Alberto

Postnext
Robert HeintzSubject: Create mapping based on destination XSD?
Author: Robert Heintz
Date: 22 Oct 2007 04:37 AM
Hi Alberto

My XSD is attached.
I verified, that it contains minOccurs/maxOccurs, and I believe this should be recognized, when using it as destination and when using a destination XML that's been generated from it.

--
Robert


DocumentAdressanrede.xsd
sample xsd

Postnext
(Deleted User) Subject: Create mapping based on destination XSD?
Author: (Deleted User)
Date: 22 Oct 2007 05:31 AM
Hi Robert,
when I use your schema with Mapper (using Stylus Studio 2007 rel. 2), I see that both Adressanrede and AdressanredeMLS are marked as repeatable; invoking the File | Document Wizards, picking the XMLSchema to XML wizard, also gives me multiple elements under the ProDataSet root.

Which version of Stylus are you using?

Thanks,
Alberto

Posttop
Robert HeintzSubject: Create mapping based on destination XSD?
Author: Robert Heintz
Date: 26 Oct 2007 07:36 AM
Hi Alberto

You're right. Now that I looked at the XSD I uploaded, I found, that I had two of them - always using the bad one.
Sorry for that.

In the meantime I also found the commandline documentation.

Thanks a lot for bringing me to the point.
Best Regards,
Robert

 
Topic Page 1 2 3 4 5 6 7 8 9 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.