Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Lexial and value space in context of pattern, enum and whitespace >Thread Next - Re: Can I define a default value for a QName attribute? Can I define a default value for a QName attribute?To: <xmlschema-dev@--.---> Date: 4/26/2004 10:52:00 PM Schema Part 1, if I understand it correctly, says that the specifying a default value for an attribute causes the canonical lexical representation of that default value to be used as the value of a missing attribute. So what happens if the type of the attribute is one for which no canonical lexical value is defined? This appears to apply to: duration gYearMonth, gYear, gMonthDay, gMonth, gDay anyURI QName NOTATION For most of these one can dream up a lexical representation that will serve the purpose (or more simply, one can use the lexical value as it was written in the schema document). But what about attributes of type QName and NOTATION? What prefix is used in forming the canonical lexical representation? What happens if the namespace URI of the QName is not declared in the instance document? Michael Kay From mhk@m... Mon Apr 26 19:04:41 2004 Retur | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
