OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] XSD Schema type derived by restriction problem

Sorry, in my haste I mistyped the prefix ... you will need:


... in your document for "xs:dateTime" to be a valid QName 
representing the W3C Schema data type.

. . . . . . . . Ken

At 2009-11-20 13:14 -0500, I wrote:
>At 2009-11-20 13:10 -0500, Christopher Loschen wrote:
>>I'm working with a schema that defines a type by restricting the simple
>>dateTime type. Our mapping rules (based on the JAX-RPC spec) map this to the
>>class of the parent type (in this case, java.util.Calendar) rather than
>>creating a new class to represent the derived type. Consequently, when we
>>generate an XML message we specify that this element is of
>>xsi:type="xs:dateTime" (that is, the parent type).
>>However, when we do that, the schema validator flags the XML as invalid: it
>>cites an invalid QName at the xsi:type="xs:dateTime" attribute.
>Have you declared xmlns:ns="http://www.w3.org/2001/XMLSchema"; in 
>your XML document?
>The error message indicates that you have not, as a QName is only 
>valid if the prefix used has a namespace binding in scope.
>I hope this helps.
>. . . . . . . Ken

Vote for your XML training:   http://www.CraneSoftwrights.com/x/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS