Jan. 10, 2019 08:00 PM EST
| By XMLDEV Mailing List: An Email Discussion Forum for W3C XML technologies and XML development trends. | Article Rating: |
|
| July 10, 2008 07:06 AM EDT |
2008/7/10 Michael Kay <[email protected]>: >> I forgot the other way... for a 1 schema solution define >> extra types book-seller-author, book-distributor-author etc >> then somehow add the appropriate xsi:type attribute to the >> <Author> element when doing the respective validation: >> >> <Author xsi:type="book-seller-author"> >> >> <Author xsi:type="book-distributor-author"> >> >> ...the relevant type definition will then be used instead of >> the standard definition for <Author>. > > In XSD 1.1 xsi:type gets generalized by the "conditional type assignment" > mechanism, which allows you to assign a type based on a a rule expressed as > an XPath expression. I rather like the idea of allowing this rule to > reference parameters supplied by the application when invoking validation: > > <xs:alternative type="book-seller-author" > test="$scenario='seller-view'"/> > <xs:alternative type="book-distributor-author" > test="$scenario='distributor-view'"/> That's the perfect solution then... That's also probably a better way for handling general co-constraints: rather than use a load of complex assertions, just define all of the different variations, then assign the type based on the value: <xs:alternative type="typeA" test="@type = 'typeA' "/> <xs:alternative type="typeB" test="@type = 'typeB' "/> ....that's surely the killer new feature! As for passing parameters to the validation, if you couldn't do that then perhaps you could query the filename (using document-uri() or base-uri() don't know if that's allowed)... although that might be fragile, it's potential workaround. -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
CIO, CTO & Developer Resources
Read the original blog entry...
Published July 10, 2008
Copyright © 2008 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
IoT & Smart Cities Stories
By Yeshim Deniz Every organization is facing their own Digital Transformation as they attempt to stay ahead of the competition, or worse, just keep up. Each new opportunity, whether embracing machine learning, IoT, or a cloud migration, seems to bring new development, deployment, and management models. The results are more diverse and federated computing models than any time in our history.
Jan. 10, 2019 09:15 AM EST |
By Zakia Bouachraoui Jan. 10, 2019 09:15 AM EST |
By Liz McMillan Dion Hinchcliffe is an internationally recognized digital expert, bestselling book author, frequent keynote speaker, analyst, futurist, and transformation expert based in Washington, DC. He is currently Chief Strategy Officer at the industry-leading digital strategy and online community solutions firm, 7Summits.Nov. 11, 2018 04:00 PM EST Reads: 3,170 |
By Pat Romanski Nov. 11, 2018 11:45 AM EST Reads: 2,284 |
By Elizabeth White Nov. 10, 2018 11:45 PM EST Reads: 2,064 |
By Pat Romanski Nov. 10, 2018 10:00 PM EST Reads: 3,206 |
By Pat Romanski Nov. 10, 2018 01:00 AM EST Reads: 2,941 |
By Pat Romanski Nov. 9, 2018 04:45 PM EST Reads: 2,282 |
By Yeshim Deniz Nov. 3, 2018 05:00 AM EDT Reads: 4,027 |


Every organization is facing their own Digital Transformation as they attempt to stay ahead of the competition, or worse, just keep up. Each new opportunity, whether embracing machine learning, IoT, or a cloud migration, seems to bring new development, deployment, and management models. The results are more diverse and federated computing models than any time in our history.
Dion Hinchcliffe is an internationally recognized digital expert, bestselling book author, frequent keynote speaker, analyst, futurist, and transformation expert based in Washington, DC. He is currently Chief Strategy Officer at the industry-leading digital strategy and online community solutions firm, 7Summits.

Isomorphic Software is the global leader in high-end, web-based business applications. We develop, market, and support the SmartClient & Smart GWT HTML5/Ajax platform, combining the productivity and performance of traditional desktop software with the simplicity and reach of the open web.
With staff in 10 timezones, Isomorphic provides a global network of services related to our technology, with offerings ranging from turnkey application development to SLA-backed enterprise support.
Leading global enterprises use Isomorphic technology to reduce costs and improve productivity, developing ...
On-premise or off, you have powerful tools available to maximize the value of your infrastructure and you demand more visibility and operational control. Fortunately, data center management tools keep a vigil on memory contestation, power, thermal consumption, server health, and utilization, allowing better control no matter your cloud's shape. In this session, learn how Intel software tools enable real-time monitoring and precise management to lower operational costs and optimize infrastructure for today even as you're forecasting for tomorrow.























