[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to compare two QName values in an XML Schema?
Costello, Roger L. wrote:
Hi Folks, I think the constructor (http://www.w3.org/TR/xquery-operators/#constructor-qname-notation) only works with a string literal as the argument. What's the correct way to do the comparison? With schema-aware processing (using the schema for schemas I guess) you should be able to compare data(/xs:schema/xs:simpleType[1]/@name) eq data(/xs:schema/xs:simpleType[2]/xs:restriction/@base) Otherwise you could use resolve-QName(/xs:schema/xs:simpleType[1]/@name, /xs:schema/xs:simpleType[1]) eq resolve-QName(/xs:schema/xs:simpleType[2]/xs:restriction/@base, /xs:schema/xs:simpleType[2]/xs:restriction) -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|