Re: [xml-dev] semantics in schema (xsd)

From
Jeff Rafter <>
To
Pedro Salazar <>,
Date
2004-02-25T21:24:47Z
ID
<021201c3fbe5$cb5a6f50$6403a8c0@ARIMATHEA>
Thread
Re: [xml-dev] semantics in schema (xsd)
> I'm creating a schema file but by several times I feel the needed of
> something to validate my sub-elements in tree (children elements)
> subordinated to an attribute value on the parent element.
>
> Is it possible to validate this with the schema semantics?

This requirement is not directly possible in XML Schema-- though you can add
schematron rules to support it. In RELAXNG it is a snap... is that an
option?

Cheers,
Jeff Rafter