Is there any way to use RelaxNG to control content using QNames? To explain, I want to do something like:
namespace xs = "http://www.w3.org/2001/XMLSchema" element scalar { attribute dataType { "xs:integer" }, { xsd:integer } ) | attribute dataType { "xs:float" }, { xsd:float} } ) | attribute dataType { "xs:double" }, { xsd:float } ) and have it validate elements that look like either of: <scalar xmlns:xsd="http://www.w3.org/2001/XMLSchema" dataType="xsd:integer"> 1 </scalar> <scalar xmlns:xs="http://www.w3.org/2001/XMLSchema" dataType="xs:integer"> 1 </scalar> Obviously the RNC above won't do that since it is treating "xs:integer" as a string rather than a QName. Toby White
