Connecting Tech Pros Worldwide Forums | Help | Site Map

Attributes in XSD

Jon Mcleod
Guest
 
Posts: n/a
#1: Oct 30 '08
Is there a way to make one attribute dependent on another in an XSD?
Like, optional attribute "B" can only be included if optional attribute
"A" is also included? Thanks.
Martin Honnen
Guest
 
Posts: n/a
#2: Oct 30 '08

re: Attributes in XSD


Jon Mcleod wrote:
Quote:
Is there a way to make one attribute dependent on another in an XSD?
Like, optional attribute "B" can only be included if optional attribute
"A" is also included?
No, you cannot do that, at least not with the current version 1.0 of the
W3C XML schema language.
You could do it with Relax NG.


--

Martin Honnen
http://JavaScript.FAQTs.com/
Mukul Gandhi
Guest
 
Posts: n/a
#3: Oct 30 '08

re: Attributes in XSD


On Oct 30, 6:02*pm, Jon Mcleod <jonmcleod2...@yahoo.comwrote:
Quote:
Is there a way to make one attribute dependent on another in an XSD?
Like, optional attribute "B" can only be included if optional attribute
"A" is also included? *Thanks.
This could be possible with XSD 1.1 assertions. But XSD 1.1 is still
under development.

cheers,
Mukul
Closed Thread


Similar .NET Framework bytes