[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Schemas and the open world assumption.
Oliver, I think the substitionGroup concept is what you require to treat the types polymorphically. Here substitutable types must be derived from the same base type (which may or may not be abstract). If you are validating via schema the enclosing type can reference the substitution group rather than the explicit types. Also, whilst I have never personally looked at it I understand that XSLT template <<match>> and XPath <<instance of>> or <<treat as>> operators respect substitution groups if you use a schema aware processor. I suppose the difference with OO languages such as Java is that you have to declare substitution explicitly - in Java simply subclassing another class (or implementing an interface) is enough. Michael On Tue, Oct 6, 2009 at 1:37 AM, Jim Tivy <jimt@bluestream.com> wrote: Hi Oliver
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|