Subject: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?
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?
Subject: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.
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.