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

  • To: "Mangesh Kalbhor" <Mangesh.Kalbhor@a...>, <xml-dev@l...>
  • Subject: RE: can attribute in XML schema hold value and unit
  • From: "Sreeni Yetchina -X \(syetchin - Pure Solutions at Cisco\)" <syetchin@c...>
  • Date: Fri, 3 Mar 2006 12:27:11 -0800
  • Thread-index: AcY+/iUy37EN2qkESKundHM31UedGAAAoNmw
  • Thread-topic: can attribute in XML schema hold value and unit

Hi Mangesh,
You can have this in Schema.
Define simple type attribute and have a regular expression as the constraint on that simple type attribute according to your data+units combination.
-Sreeni


From: Mangesh Kalbhor [mailto:Mangesh.Kalbhor@a...]
Sent: Friday, March 03, 2006 12:08 PM
To: xml-dev@l...
Subject: can attribute in XML schema hold value and unit

Hi All,

 

I am creating a xml schema where I have to making a ‘attribute’ but can a attribute hold a value and unit.

My example is FlowRate, let’s the value and unit could be 100 GPM.

Can I have just one attribute for 100 and GPM both. Some times it might be 80 cFPS.

 

So can a attribute hold both or do I need element here.

 

Thanks,

 

Mangesh


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