[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XPath 1.0 challenge: select all XML Schema element
On 2015-07-19 15:58, Costello, Roger L. costello@xxxxxxxxx wrote:
Hi Folks, But the schema file could have been written like this: There are two issues here. The first is matching the element called 'element' and your XPath expression will work fine there, assuming you've bound the prefix "xs" to the XML Schema namespace URI and that the same namespace name is the default namespace for the prefix-less Schema document. The second issues is matching "string" or xs:string". We know that it's a QName and must have zero or one colon, so @type = "string" or substring-after(@type, ":") = "string" would work. Liam -- Liam Quin, W3C - XML Activity Lead; Digital publishing; HTML Accessibility Pictures From Old Books http://www.fromoldbooks.org/ ; words at http://words.fromoldbooks.org Coming soon: punctuation from old books, instalment one: Just the Commas.
|
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
|