| vlad |
| Advanced Member |
| Vlad |
| Mauritius |
|
|
| None Specified |
|
| Tuesday, December 13, 2005 |
| Friday, November 20, 2009 10:44:07 PM |
551 [8.54% of all post / 0.38 posts per day] |
|
Best of all is to split them in multiple smaller files - starting with MapForce v2010 you are able to process multiple files at once.
Vlad
|
Stephen,
"island" has already answered your question "is there better way to do this?" - all you need is to modify the schema as he proposed.
The problem with wrox-sample is not the recursion itself, but the absolute requirement for every XML element to have subelement with the same name.
Think of this example from programming perspective:
function() { function(); }
if you execute it, you will end with stack-overflow. This function only makes sense if there is an optional call to the subfunction
function() { if ( condition ) { function(); } }
A minOccurs=0 is such an option from XML perspective.
Vlad
|
Just for understanding: it is simply impossible to validate document upfront before it has been created, i.e. to know just from mapping itself whether the document will be valid or not, because the result depends on particular source data.
This is why MapForce is not able to enforce validness of the mapping itself, but you can always validate the resulting document as described above.
Vlad
|
I'm not sure what you mean by attachments (email?), but you can configure XMLSpy to open files with any file extensions through Tools/Options/File Types.
Vlad
|
There is a big potential issue with using Global Resources for XML Schema. In contrary to XML instances, when you switch the Global Resource Configuration, you can potentially completely break your own mapping, because the underlying schema has changed. Therefore for XML instances MapForce will insert a dynamic Global Resource path, but not for XML Schema.
Vlad
|
Instead of using a max function connected to the database table, create a SELECT statement and connects its result to auto_number start_at - this should work. I.e.
SELECT MAX( id_utente ) + 1 FROM utente
Vlad
|
Ok, this is now completely unfair. Last time you said you are not going to buy Altova software, and now you are coming back to us with your questions? Why don't you ask the vendor of your software?
This is probably what you have to change:
<xsl:value-of select="../../@id"/>|<xsl:value-of select="@id"/>
Vlad
|
No, this is currently not possible. We hope to add this functionality in one of the future releases.
Vlad
|
and please do not use confusing version number. There is no MapForce v10
Vlad
|
First, you need to clarify whether you are working on your stylesheets with StyleVision (because you've posted your question in StyleVision forum) or writing your stylesheets by hand. The solution depends on your answer.
Vlad
|
|