You mean validate "Me" against type "float"? Sure Xerces does that. This is
the reason why xsi:type exists.

I suspect that you meant xsi:type="xsd:float", where xsd is bound to the
schema namespace.

Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]



                                                                                       
                          
                    Yuri de Wit                                                        
                          
                    <yuri.dewit@metas       To:     "'[EMAIL PROTECTED]'"    
                          
                    erver.com>               <[EMAIL PROTECTED]>             
                          
                                            cc:                                        
                          
                    02/20/2002 02:34        Subject:     xsi:type and validation of 
polymorphic types in XML     
                    PM                       instances                                 
                          
                    Please respond to                                                  
                          
                    xerces-j-dev                                                       
                          
                                                                                       
                          
                                                                                       
                          



Can Xerces validate types, as opposed to elements and attributes, in XML
instances?

...
<parameter name="param1">
           <default-value xsi:type="float">Me</default-value>
</parameter>
...

Lets say the schema has something like this:

...
<xsd:element name="parameter">
           <xsd:complexType>
                     <xsd:sequence>
                               <xsd:element name="default-value"
type="xsd:anyType"/>
                     </xsd:sequence>
           </xsd:complexType>
</xsd:element>
....

WILL XERCES VALIDATE <default-value> CONTENT? I need a way to validate
parameter default values being them simple types or complex types in my XML
instance that is not known in the schema at design time.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to