Information Filled Under ‘Utility’ Category

Any discussion of more Perl-like regex capability inXPath 2.1?

Michael, thanks for the detailed feedback. My most important question was answered, namely whether the working group has talked about expanding regex/replacement functionality , and your reasons for not adding the particular Perl extensions I mentioned are well taken, David S. On Fri, 21 May 2010, Michael Kay wrote: > > There is one other extensions to regexes in 2.1, support for non-capturing > groups has been added.

Read the original post:
Any discussion of more Perl-like regex capability
inXPath 2.1?


Any discussion of more Perl-like regex capability in XPath 2.1?

So far as I can see in the working draft of ” XPath and XQuery Functions and Operators 1.1″, the only real extension to regular expressions is the addition of a “q” flag in matches to block metacharacter interpretation: http://www. w3 .org/TR/xpath-functions-11/#flags I’m just curious whether there has been discussion of adding any more Perl-like expressivity to XPath regular expressions. For example, being able to use the escape sequences u, l, etc

The rest is here:
Any discussion of more Perl-like regex capability in
XPath 2.1?


Partitioning data by date

Hi Andrew, If you are interested, with the tumbling windows Michael is mentioning (again, assuming your metrics are ordered by date) it could look like this: { for tumbling window $w in doc(“metricsCollection. xml “)//metric start at $s when fn:true() end $m at $e next $n when xs:date(xs:dateTime($m/timestamp)) ne xs:date(xs:dateTime($n/timestamp)) return {xs:date(xs:dateTime($m/timestamp))} {$e – $s + 1} } Tumbling windows cannot overlap, so you can start one whenever it is possible, and end a window as soon as the date in an item $m is not the same as in the following item $n.

The rest is here:
Partitioning data by date


First XQuery Meetup London: July 15th 2008

Hi, We have moved the date to July 12th in order to fit better with W3C working groups schedule. Sorry for the inconvenience. Looking forward ;-) William On Tue, Apr 27, 2010 at 10:32 AM, Michael Kay wrote: > > My diary shows that I’m busy on 15 July 2008, but 15 July 2010 might be > possible ;-) > > Presumably this was planned to align with the XQuery Working Group meeting > scheduled in Reading for 13-15 July, so we should be able to get a few > people along.

See the article here:
First XQuery Meetup London: July 15th 2008


Getting a count of values that show up at least once

Hello, I have some example metrics that I’m using to model real metrics we will be generating from our application and I’m trying to build some xqueries to help extract the data we want from the metrics, but I’m having problems wrapping my head around this one.

Read the original here:
Getting a count of values that show up at least once


How to have xquery act like a SQL UNION?

Hi Andrew, This XQuery Update approach actually does not alter any record – a copy-modify-return expression only modifies a copy and is hence a simple, not updating, expression (Paragraph 2.4.5 in the specification : ” A transform expression is a simple expression because it does not modify the value of any existing nodes.”) Kind regards, Ghislain On May 12, 2010, at 5:49 PM, Andrew Webster wrote: > Excellent. I’ll give this a try

Excerpt from:
How to have xquery act like a SQL UNION?


Specifications for matching alternatives in a regex group?

* David Sewell wrote: > Given this query: > > let $string := “This is an introduction to XQuery ” > return ( > replace($string, ‘(introduction|intro)’, ‘XXX’), > replace($string, ‘(intro|introduction)’, ‘XXX’) > ) > > where both parts of the grouped expression are potential matches, is the > alternative to be matched defined by specification , or > implementation-dependent? “If two alternatives within the pattern both match at the same position in the $input, then the match that is chosen is the one matched by the first alternative.” — section 7.6.3 fn:replace in F&O.

Link:
Specifications for matching alternatives in a regex
group?


Specifications for matching alternatives in a regexgroup?

There is also a rule: If two alternatives within the pattern both match at the same position in the $input, then the match that is chosen is the one matched by the first alternative. (Though the example is a bit different from this case). Regards, Michael Kay http://www.

Go here to see the original:
Specifications for matching alternatives in a
regexgroup?


Announce# xmlsh version 1.0.4 update released, MarkLogic extension to xmlsh 1.1 released

Announce. xmlsh version 1.0.4 update released http://www.xmlsh.org Announce. MarkLogic extension module 1.1 update released http://www.xmlsh.org/ModuleMarkLogic A command line shell for XML Based on the philosophy and design of the Unix Shells xmlsh provides a familiar scripting environment, but specifically tailored for scripting xml processes.

Go here to see the original:
Announce# xmlsh version 1.0.4 update released,
MarkLogic extension to xmlsh 1.1 released


Problem with "Content is not allowed in prolog."

Hi Kenneth, With an empty descript. dtd and an empty catalog .pen, I am not getting any error executing the following query with Saxon (which you seem to be using): normalize -space(data(doc(“DMC-param_file. xml “)/dmodule/idstatus//distrib/@level)) (it returns D) Perhaps the error comes from one of these two extra files (descript.dtd, catalog.pen).

See original here:
Problem with "Content is not allowed in prolog."


Page 4 of 12« First...2345610...Last »


The news,articles,images etc. on XML Developer India  are selected automatically through a software process, please follow each article's attributed link to see the original content. This news site is powered by Wordpress. Incase of any objection or question please Contact Us...

Our Sevices

News