IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: rune66
About
User Name: rune66
Forum Rank: Advanced Member
Real Name:
Location Copenhagen
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Wednesday, July 21, 2010
Last Visit: Friday, March 1, 2024 10:59:05 AM
Number of Posts: 36
[0.20% of all post / 0.01 posts per day]
Avatar
Last 10 Posts
Topic: How to integrate CDATA in Mapforce 2011 ?
Posted: Wednesday, April 8, 2015 12:48:10 PM
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.
Topic: Count identical values?
Posted: Thursday, May 2, 2013 8:32:01 PM
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).
Topic: How to url encode a string?
Posted: Thursday, May 2, 2013 8:29:03 PM
I looked in XSLT 2.0 but couldn't find any. Which ready-to-use function are you referring to?
Topic: Count identical values?
Posted: Thursday, May 2, 2013 9:33:22 AM
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
Topic: How to url encode a string?
Posted: Thursday, May 2, 2013 8:23:00 AM
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
Topic: FYI about libraries
Posted: Friday, March 22, 2013 11:56:12 AM
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?
Topic: Sorting
Posted: Monday, February 6, 2012 12:16:47 PM
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
Topic: FYI about libraries
Posted: Thursday, January 19, 2012 1:13:19 PM
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
Topic: Convert/map schema to xml
Posted: Friday, November 4, 2011 1:26:23 PM
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
Topic: XMLSpy chrashes using "create db structure from xml schema" function
Posted: Friday, November 4, 2011 11:08:16 AM
No but I guess that's what I should do.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.