|
next
|
 Subject: Datatype error: Type:SchemaDateTimeException, Message:buffer not initialized yet! Author: Simon Templar Date: 30 Aug 2005 07:26 AM
|
Alberto,
Many thanks for your prompt reply and help. Some further questions.
>The schema specifies that the CustDOB is optional, but, if it is >present, it must have a valid date inside. At that location there is >an empty CustDOB, so the error is reported.
Thanks for explaining this, I understand this part now.
>Your stylesheet should not output the entire element when
>there is no date to be written, for example by using
>
><xsl:if
>test="a:RetailInvestment/a:CustDOB">
><CustDOB>
><xsl:value-of select="a:RetailInvestment/a:CustDOB"/>
></CustDOB>
></xsl:if>
>
>Hope this helps,
>Alberto
Now, is there a way not to output just the empty tag and still output the element? This is a requirement and hence I don't have the flexibility to simply not output the whole element containing the offending tag.
As always all help is appreciated.
Regards.
|
|
|
|