Connecting Tech Pros Worldwide Help | Site Map

Attributes in XSD

  #1  
Old October 30th, 2008, 02:05 PM
Jon Mcleod
Guest
 
Posts: n/a
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.
  #2  
Old October 30th, 2008, 02:35 PM
Martin Honnen
Guest
 
Posts: n/a

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/
  #3  
Old October 30th, 2008, 03:15 PM
Mukul Gandhi
Guest
 
Posts: n/a

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 Threads
Thread Thread Starter Forum Replies Last Post
Attributes in XSD markmcgookin answers 1 March 14th, 2008 02:00 PM
Restriction on attributes in XSD vincente13@gmail.com answers 1 June 14th, 2006 12:55 PM
Additional properties of attributes in XSD Abdullah Kauchali answers 6 March 7th, 2006 07:45 PM
Inheritance in XSD? Bill Cohagan answers 6 November 12th, 2005 03:25 AM