Altova Mailing List Archives>Archive Index >xml-dev Archive Home >Recent entries >Thread Prev - can attribute in XML schema hold value and unit [Thread Next] RE: [xml-dev] can attribute in XML schema hold value and unitTo: "'Mangesh Kalbhor'" <Mangesh.Kalbhor@--------.--->,<xml-dev@-----.---.---> Date: 3/3/2006 9:10:00 PM It's certainly possible to pack the value and the unit of measure into one attribute and many XML vocabularies do this. However, it makes life a bit more difficult for anyone processing the XML, so two attributes might be better. Michael Kay http://www.saxonica.com/ From: Mangesh Kalbhor [mailto:Mangesh.Kalbhor@a...] Sent: 03 March 2006 20:08 To: xml-dev@l... Subject: [xml-dev] can attribute in XML schema hold value and unit Hi All,<o:p></o:p> <o:p> </o:p> I am creating a xml schema where I have to making a ‘attribute’ but can a attribute hold a value and unit.<o:p></o:p> My example is FlowRate, let’s the value and unit could be 100 GPM.<o:p></o:p> Can I have just one attribute for 100 and GPM both. Some times it might be 80 cFPS.<o:p></o:p> <o:p> </o:p> So can a attribute hold both or do I need element here.<o:p></o:p> <o:p> </o:p> Thanks,<o:p></o:p> <o:p> </o:p> Mangesh<o:p></o:p> | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
