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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Schema constructs

[ Lists Home | Date Index | Thread Index ]

What error message are you getting? (I'm thinking the issue might be
non-determinism)

Kind Regards,
Joe Chiusano
Booz | Allen | Hamilton
Strategy and Technology Consultants to the World

> "James, David" wrote:
> 
> I am looking at the possibility of using xml schema to define data
> interchange between organisations and as a means of validating the
> content of the xml data. Due to my limited knowledge of schema
> structures (and my inability to interpret part of the w3c primer) I
> cannot get a complexType element to pass the schema syntax check using
> the XSV validator.
> 
> I want to define a complexType element that always first contains a
> particular simpleType element, followed by one or more of a number of
> other simpleType elements. I have tried using a combination of
> <sequence> and <all> but without success. Typical entries within the
> xml file might be:
> 
> <modify>
> 
>   <tagname>FT123<\tagname>
> 
>   <lowscale>0.0</lowscale>
> 
> </modify>
> 
> <modify>
> 
>   <tagname>LT345</tagname>
> 
>   <hiscale>200.0</hiscale>
> 
>   <hialarm>190.0</hialarm>
> 
> </modify>
> 
> In this case, the element <tagname> must always be present but a range
> of parameters associated with that tagname could be modified. I can
> define the simpleType elements, including their restrictions, and
> define complexType elements for adding and deleting tags but can
> anyone point me in the right direction for defining the above
> structure in my schema?
> 
> David James

-- 
Kind Regards,
Joseph Chiusano
Associate
Booz | Allen | Hamilton




 

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

Copyright 2001 XML.org. This site is hosted by OASIS