OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] XPath 2.0 - how much of XQuery should it include?

[ Lists Home | Date Index | Thread Index ]

Hi Ron,

> Jeni Tennison wrote:
>> The query itself is not parameterised -- if you want the query to
>> extract slightly different information, then you do that by writing
>> another query; it's expected that the users of the information
>> store will be able to write a query themselves, or will have close
>> enough association with the information store administration staff
>> that they can get them to write it for them.
>
> I generally agree with your characterization of how XQuery and XSLT
> will be / are used, except for this statement. Why do you think
> XQuerys won't be parameterized? Given the usefulness of
> parameterized queries in SQL, this seems like a natural.
>
> (Although come to think of it, I don't remember parameter markers in
> XQuery, but it's been a while since I read the spec...)

It was simply that in the XQuery WD there's no mention of parameters
in the query prolog. Perhaps they're waiting in the wings.

I guess that you could have parameterisation through separate XML
documents accessed by document() (though without being able to supply
the location of the document as a parameter, you're pretty limited).

Maybe you'd have queries that consisted purely of function
definitions, which are then included into other queries, and called
with specific arguments (err... actually, I can't see a facility for
combining separate queries, so I guess that wouldn't work, unless
perhaps XQuery uses XInclude for this).

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS