[
Lists Home |
Date Index |
Thread Index
]
Dare Obasanjo wrote:
> W3C XML Schema based typing can handle the situation fine. I can
> query all comment types from that example using XSLT 2.0/XPath
> 2.0 or XQuery. The query
>
> //*[. instance of element ipo:comment]
>
> should return all comments that have ipo:comment as the head
> of their substitution group. [...]
That's exactly my point. This sort of thing is easy to do with
tools that are WXS-aware and have full access to the PSVI and
schema, but darn near impossible with tools that aren't. This
makes the data less useful, since fewer tools can process it.
Now that might be a moot point; it might be the case that WXS support
will be a common feature in major XML toolkits. If that happens,
then the example International Purchase Order schema might very
well be a good design.
I'm not placing any bets (or any data!) on that horse though.
--Joe English
jenglish@flightlab.com
|