[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Universal Schema to Validate an Arbitrary Well-FormedDocum
Peter Rodgers <pjr@1...> writes: > Any assistance to the following problem gratefully received. > > Problem: > > I require an XML Schema (XSD) which will validate an arbitrary > well-formed document as valid. You might call this the universal schema. The empty schema has this property, in so far as it's not _really_ empty, it contains the built-in type definitions, including xs:anyType, which is what you want. Now all you need is a schema validator which exposes an entry-point corresponding to clause 1 of section 5.2 Assessing Schema Validity of part 1 of the W3C XML Schema REC [1], and use that entry point specifying xs:anyType as the type definition to use. XSV [2] exposes such an entry point, so for example > xsv -T {http://www.w3.org/2001/XMLSchema}anyType [anywellformedxmldoc] will report the document element as [validity]=valid I don't know enough about WSDL 1.1 service definitions to know whether they allow you to name the type defn to use . . . ht [1] http://www.w3.org/TR/xmlschema-1/#validation_outcome [2] http://www.ltg.ed.ac.uk/~ht/xsv-status.html -- Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh Half-time member of W3C Team 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: ht@i... URL: http://www.ltg.ed.ac.uk/~ht/ [mail really from me _always_ has this .sig -- mail without it is forged spam]
|
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
|