Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML (Schema) Question

From: Soren Kuula <dongfang@--------.-->
To: NULL
Date: 8/7/2005 10:35:00 AM
Mike Busch wrote:
> Jason Karns wrote:
> 
>  > I have a question involving the creation of an XML Schema and am 
> looking for guidance or the name of someone who may be a good person to 
> talk to about this.  The problem is how to properly define a few 
> elements in a schema such that nesting is allowed, but for some 
> elements, nesting of themselves is disallowed.  An example from XHTML:

>  >  but <a> cannot be nested within itself. (<a><span><a></a></span></a> 
> is disallowed.)

>  >  Any suggestions or the name of a good instructor to talk to would be 
> most helpful.

XML Schema can't express that; it's too weak language class.

You can say in XML Schema that the a element is allowed as a child of 
{some elements}. You can also say that a is allowed as a child of b when 
b is a child of c .. and so on, but only to finite height. There's no 
way to express that a is never an ancestor of a.

The Relax NG and DSD2 schema languages can do it..

Søren


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent