[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Specifying formal semantics in XML languages


xpath in xml
At 13:44 21/06/2006, Jonathan Robie wrote:
>peter murray-rust wrote:
>>I am therefore looking for a way of specifying semantics of this 
>>type in <appinfo> elements on some or all elements. It is important 
>>that the semantics are not procedural (we cannot assume that the 
>>users have Python, etc.). There is currently no requirement for 
>>speed, so XSLT is a possible solution although it is very difficult 
>>to evaluate scientific functions in it.
>
>Why not XQuery, combined with MUST / MAY / MUSTNOT conditions? 
>XQuery is a declarative language that can express the conditions 
>given below. And I'd expect it would be fairly easy to define the 
>user-declared functions you need.
>
>Jonathan

Many thanks,
         My initial reluctance to use XQuery or XPath is because it 
is not necessarily easy to generate code from them. It would seem to 
mean writing an XQuery parser (although the discussion on a separate 
thread suggest that XPath in XML syntax could be a useful approach). 
The actual validation could be done by calling XPath when a component 
was read in. I am also unclear how you can use XQuery to define 
user-declared functions

P.

It does seem as if either/or Schematron and XQuery look like possible 
ways forward


Peter Murray-Rust
Unilever Centre for Molecular Sciences Informatics
University of Cambridge,
Lensfield Road,  Cambridge CB2 1EW, UK
+44-1223-763069 


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.