[Home] [By Thread] [By Date] [Recent Entries]

  • To: xml-dev@l...
  • Subject: Key constraint on optional attribute
  • From: Paul Popiel <PaulP@a...>
  • Date: Wed, 16 Nov 2005 10:19:39 +0800

Hi,

is there anyway of placing a key constraint on an optional attribute?

namely, if the optional attribute is defined for the element then it must be
unique compared to the other, optionally, defined attributes (same
attribute).

ive tried xpath expressions such as ".//elementName[@OptAttr]"  for the
selector, but i get an error along the lines of "invalid XPATH for selector
or field"

thanks in advance

paul


**********************************************************************
This email is confidential.  If you are not the intended recipient, 
you must not copy, distribute, disclose or otherwise use the 
information contained in it.   If you have received this email in 
error, please tell us immediately by return email or by contacting 
us on (+61 8) 9209 6900 and delete the document.  Email may 
be susceptible to data corruption, interception and unauthorised 
amendment.  Advanced Engine Components Ltd is not 
responsible for any changes made to a document other than 
those made by Advanced Engine Components Ltd, or for the 
effect of the changes on the document's meaning.

You must scan this email and any attachments for viruses. 
Advanced Engine Components Ltd accepts no liability for any 
loss, damage or consequence, whether caused by our own 
negligence or not, resulting directly or indirectly from your 
receipt of this email or the use of any attachments.
**********************************************************************

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member