|
Home > Archive > BizTalk Server > February 2005 > Inline XSLT in Mapper: Output Validation Error, Help
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Inline XSLT in Mapper: Output Validation Error, Help
|
|
|
| Hello, every time I test the map I get the following error:
Inline XSLT in Mapper output validation error: The "Coverage" element is not
declared. The "CoverageCode" element is not declared.
Note: The map validates without errors, but not when I test it. I am using
a Scripting Functoid in the Map with an Inline XSLT Call Template. I am using
BizTalk Server 2004.
Does anyone know why this is happening?
Here is the example of my inline XSLT:
<xsl:template name="OrderCoverageCodeXSLT">
<xsl:param name="param1"/>
<xsl:param name="param2"/>
<xsl:element name="Coverage">
<xsl:element name="CoverageCode"><xsl:value-of select="$param1"
/></xsl:element>
</xsl:element>
<xsl:element name="Coverage">
<xsl:element name="CoverageCode"><xsl:value-of select="$param2"
/></xsl:element>
</xsl:element>
</xsl:template>
Thanks in advance for your help.
--
mj
| |
| WenJun Zhang[msft] 2005-02-07, 2:46 am |
| Hi mj,
Could you send me with the schema and mapping files to let me take a
look?
v-wzhang@online.microsoft.com (please remove online.)
Thanks.
Best regards,
WenJun Zhang
Microsoft Online Partner Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
| |
| WenJun Zhang[msft] 2005-02-10, 7:50 am |
| 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.
|
|
|
|
|