`
alexela
  • 浏览: 4836 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论

Add a choice option in the context

阅读更多

In most of schema definition cases, developers will use the simple syntax to write and parse XML documents. They won't care about the complexity of set of conditional combinations. E.g. the simple use of <xsd:sequence>, <xsd:all>, <xsd:choice>.

This article introduces a case of exclusive elements combination. For example, there are three elements A, B, C. They all can optionally occur in any order, but B or C should exclusively appear at any time. As below:

<root><A/><B/></root>, <root><A/><C/></root>          <!-- OK cases -->
<root><A/><B/></root>, <root><A/><B/><C/></root>      <!-- NON-OK cases -->

Apparently we may use <xsd:all> for the non-ordered children, and then specify a <xsd:choice> for the alternative subordinates. However, as we know, the <xsd:all> representation does not allow any of his peer <xsd:choice>. Is it irrealizable to define such combination cases? Surely we have at least two ways to implement it.

[Download]

1. Click to download The original article in pdf format for more detail

2. Click to download The resources zip> for the sample definition

分享到:
评论

相关推荐

    Add Take Ownership Option\Add Take Ownership Option.reg

    Add Take Ownership Option\Add Take Ownership Option.reg 取得管理员权限

    SSD7 选择题。Multiple-Choice

    The foreign key in a table T1 _____ the same _____ as the corresponding primary key in table T2. must have, name need not have, name must have, domain (a) I, II, and III (b) I and II (c) ...

    This Add-in converts the text format (DOS or UNIX) of a file

    This Add-in converts the text format (DOS or UNIX) of a file when it is saved in Visual Studio.(39KB)

    add_options_in_desktop_context_menu

    "add_options_in_desktop_context_menu"这个主题旨在教你如何自定义桌面上下文菜单,添加一些实用的功能,比如“清空回收站”、“运行”和“搜索”。这些选项能让你更方便地访问常用的功能,而无需通过开始菜单或...

    EPM Add-in_NET40

    office 2013 EPM插件,EPM add-in for Microsoft Office 是在由SAP Business...EPM系统插件add-in安装 - EPM 系统插件 Add-in 安装 说明: Add-in 为依附在 excel 上的一个直接访问 EPM 系统 essbase 数据库的小插件。

    A DevStudio Add-in that adds the ability to launch windows e

    A DevStudio Add-in that adds the ability to launch windows explorer in the directory of the currently active project(32KB)

    Microsoft Excel Add-In

    【Microsoft Excel Add-In】是一种用于扩展Excel功能的插件或加载项,它允许用户自定义工作簿、工作表和图表,提升数据处理和分析能力。这些Add-Ins通常由开发者编写,采用VBA(Visual Basic for Applications)或...

    ArcGIS 10.1 for Desktop Add-in开发

    《ArcGIS 10.1 for Desktop Add-in开发》 ArcGIS是由Esri公司推出的全球领先的地理信息系统(GIS)软件,广泛应用于地图制作、空间数据分析、地理信息管理等多个领域。在ArcGIS 10.1版本中,开发者可以通过创建...

    数位板压力测试

    The user should be able to use and control the tablet in as natural and easy a manner as possible. The user's preferences should take precedence over application requests, where possible. Here are ...

    A SIMPLE MESH GENERATOR IN MATLAB

    Creating a mesh is the first step in a wide range of applications, including scientific computing and computer graphics. An unstructured simplex mesh requires a choice of meshpoints (vertex nodes) ...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    - ADD: In TFlexPanel.DefaultLinkPoint property added Size field that lets define visual size of the connection points of the flex-connectors. Initialized with DefaultLinkPointSize constant in the ...

    Add-in Express Version 8.1 Release (build 1432) - 10.2 Tokyo

    基于Microsoft Office的开发,Add-in Express提供了一组用于创建Microsoft Office插件的组件。与所有Microsoft Office程序交互的所有必需技术包:Microsoft Outlook,Excel,Word,Visio,Microsoft Project,...

    ArcGIS-Add-In开发文档样例资料

    ArcGIS Add-In开发是Esri公司的ArcGIS平台中的一项重要技术,它允许开发者通过扩展功能来定制和增强ArcGIS Desktop或ArcGIS Pro等应用程序。这个压缩包“ArcGIS-Add-In开发文档样例资料”提供了丰富的资源,帮助你...

    MVVM Training In the Box

    In the Box, is a brand name for a series of CBT Feature Extensions I’ll release that are listed in the Visual Studio 2010 Add New Project dialog; see below image. This release is MVVM Training, the ...

    JS动态添加option和删除option(附实例代码)

    1.动态创建select 代码如下: ...添加选项option 代码如下: function addOption(){ //根据id查找对象, var obj=document.getElementById(‘mySelect’); //添加一个选项 obj.add(new Option(“文本”,”值”)); /

    Access 2003 Add-in: Source Code Control

    When you get or check out one of these objects, the Access Source Code Control add-in copies the text file from the Visual SourceSafe project to a working folder on your machine. Microsoft Access ...

    RetinaFace: Single-stage Dense Face Localisation in the Wild.pdf

    Though tremendous strides have been made in uncon trolled face detection, accurate and efficient face locali sation in the wild remains an open challenge. This pa per presents a robust single-stage ...

    CE中文版-启点CE过NP中文.exe

    Added cut/copy/paste context menu items to pointer offset fields in add/change address, and added a context menu to the pointer destination Added an automated structure compare for two groups of ...

    linux kernel in a nutshell

    - **Modifying the Bootloader**: Updating the bootloader configuration file (`grub.conf` or `grub.cfg`) is necessary to add the new kernel as a boot option. #### Major Customizations In addition to ...

Global site tag (gtag.js) - Google Analytics