Re: [xml-dev] XML schema: how to define choice between value as an attribute and value as element text

From
Bill de hÓra <>
To
XML Developers List <>
Date
2004-06-12T21:06:53Z
ID
<>
Thread
Re: [xml-dev] XML schema: how to define choice between value as an attribute and value as element text
Patrik Beno wrote:

> 

> Please - can this restriction be defined using XML schema?
> If so, how? Can anyone provide an example?

I don't think such a constraint is expressible in XML Schema, but 
experts here might be able to correct me. Use RELAX NG instead.

But I have to ask; why would you want to do this?

cheers
Bill