02-10-05 12:50 PM
Hi Marci,
I've figured the cause of the error you met. If you generated a valid
instance of target schema OSITracCommon, you will see all its
elements include the namespace prefix, e.g: <ns0:AdditionalComment> .
However the XSLT template you used in the map doesn't populate the
elements with the namespace prefix.
<xsl:element name="Note">
<xsl:element name="AdditionalComment"><xsl:value-of select="$param6"
/></xsl:element>
</xsl:element>
So the schema validator looks for <ns0:AdditionalComment> and reports
<AdditionalComment> is not declared.
To resolve the problem, you can simply set Attribute FormDefault and
Element FormDefault to 'Unqualified' in OSITracCommon.xsd's <schema>
node property. Then the namespace prefix isn't enforced which will
not impact the validity of XML instance.
By the way, I still see some data type mismatching errors after the
'not declared' one get fixed. You may do some further checking on it.
Thanks.
Best regards,
WenJun Zhang
Microsoft Online Partner Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
[ Post a follow-up to this message ]
|