Hi all

Today I tried playing with the “Fixed” property that can be set on an element or an
attribute in your schema. According to the documentation, this is then a value that
MUST be present in the element.


So the mapper is actually quite down with this – you cannot map anything to the field
that has a value in the “Fixed” property. And when expecting the XSLT that is generated
by the mapper you will find, that the mapper simply inserts the correct and hard coded
value into the field.



Now, I created some links in the map just to test it, and chose that the mapper should
validate the input for my map, but not the output, since I hadn’t bothered dragging
all the necessary links.

To my surprise I got this error:

 1: Output validation error: The value
of the 'MiddleNames' element does not equal its fixed value.

.csharpcode, .csharpcode pre
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
background-color: #f4f4f4;
width: 100%;
margin: 0em;
.csharpcode .lnum { color: #606060; }

An error validating the output of the map but this surely must be a mistake, because
I turned validation of the output from the map off and besides; the value in “MiddleNames”
cannot be wrong, because the mapper has put it there it self, taken from the schema.
Very weird indeed.

Only after quite a search, did I discover that the error was in validation of the
INPUT to the map and not the output. I had used the same schema as both input and
output, and my input instance did not have the correct value since it was an old test

But really Microsoft that error message could be better! 🙂

Hope this helps someone.