| rune66 |
| Advanced Member |
|
| Copenhagen |
|
|
| None Specified |
|
| Wednesday, July 21, 2010 |
| Friday, March 1, 2024 10:59:05 AM |
36 [0.20% of all post / 0.01 posts per day] |
|
Just for the record, I stumbled upon this and didn't understand the answer. I had the same issue, that I had to add unencoded content to an xml-file in a CDATA-section. Now it seems MapForce supports adding unencoded content:
http://manual.altova.com/mapforce/mapforcebasic/index.html?mffcdata_sections.htm
So regardless of Vlad's answer Altova has decided to make this possible.
|
|
Hi Vlad - I wonder why you bothered to post this non-answer. Of course I can contact Altova Product Support, but I find that other users might be interested in the solution. It's not like I haven't tried, and thus I don't find it is obvious how to do (and the documentation doesn't say anything about it).
|
|
I looked in XSLT 2.0 but couldn't find any. Which ready-to-use function are you referring to?
|
Hi there,
I have an input consisting of non distinct identifiers, like:
34 34 12 06 06 03 03 03 03 03 02 03
Now I would like to count the number of occurences of each distinct value:
34, 2 12, 1 06, 2 03, 6 02, 1
I'm trying using group by and count but I can't make it work. This should be simple.
Regards, Rune
|
Hi there
I need to build a URL for calling a REST-based web service (using the "XML schema/file"-component). This URL may contain characters that Mapforce won't accept (like Danish characters) unless they are URL-encoded. I can't find any way to do this encoding in Mapforce. Do I really have to build this function on my own (using search and replace)?
Regards, Rune
|
Hi
I'm not sure I understand your setup completely.
Do you have MapForce installed on the other machine (where you JAR) or isn't that necesary?
|
Hi there
I'm trying to figure out how to do a sort in MapForce.
Say I have the following XML:
<order> <name>xx</name> <number>1</number> </order>
How can I:
1) Construct a mapping that maps a sorted list of order elements 2) Choose to map only the first element in the sorted list
Do I have to add some XSLT and if so how?
Regards, Rune
|
Hi - This is just a post about the way MapForce stores library references within projects since this is not documented, and has caused a lot of trouble for me.
When you add libraries in MapForce the references are stored on a application PLUS user basis in the registry. Also whatever libraries you have added, these are only stored when you exit MapForce.
Why is this important in some cases? Well for me it is important because I run my mappings using the command line (MapForce.exe \BUILTIN) via a Java application (with another Windows-user than the one originally creating the mapping).
IF you want to run a mapping from the command line that has added libraries you have to ensure two things:
1) The MapForce app instance that you have used to create the mapping must have been exitted after you added the libraries.
2) If you run the mapping with a different user than the one creating the mapping, you have to log in to Windows with this user, open the mapping you want to run, and add the libraries again and exit MapForce. Only then will the libraries become added to that user instance also.
Cheers, Rune
|
Hi,
Is it possible to convert a schema directly to xml, so that the types defined in the schema are transformed into field values in an xml-file (using another schema)?
schema1.xsd -> xmlfile.xml (using schema2.xsd)
My situation is that I have a set of datatypes defined in schema1 that I need to represent in a different (generic datatype) schema.
If I add schema1 and schema2 in mapforce and try to map between them nothing happens. I guess that is because there's no XML-file connected to schema1, but the point is that I want to map the schema values themselves, not eventuel instances.
\Rune
|
|
No but I guess that's what I should do.
|
|