Conditional Schemas

webmasterbeta

New Member
I have a situation where I have two types of XML messages that I need to validateagainst schema.1) Both messages have common fields that are required or optional.2) Each message also has specific fields that are required but are not commonto both.3) One of the common required fields, contains the type of message thatit is.Do I have to create two schemas and have the XSL branch to the appropriateschema, or can I have a single schema that checks the message type fieldand determines which fields are or are not required?If someone can point me to a clear example of how to approach this type ofvalidation, it would help me immensely.Thanks,[email protected]
 
Back
Top