Information Filled Under ‘Utility’ Category

RE using a variable within a regexp pattern

Hi Manual, if I understand you correctly, you wonder how you can compose a match pattern from variable and fixed parts, e.g. framing a variable term by an initial ^ and a trailing $, right? The solution is simple: use an _expression_ whose string value is the desired sequence of characters

Read more from the original source:
RE using a variable within a regexp pattern


Unexpected token syntax error, unexpected DeclareFunction_

Anil, Since this is a question specific to MarkLogic Server, I recommend joining the mailing list at http://developer.marklogic.com/ discuss /subscribe.xqy?list=general You can also search the list: for example, try http://marklogic.markmail.org/search/?q=XDMP-UNEXPECTED+1.0-ml (the second hit is relevant: http://markmail.org/thread/2nuwbppxeemsrpjs). The problem you’re running into is that the shakespeare demo code is somewhat old, and was written in a custom dialect that is not quite XQuery 1.0

Read the original post:
Unexpected token syntax error,
unexpected DeclareFunction_


Re: Combining XSLT 2.0′s Grouping with eXist

Bill, Yes eXist provides mechanisms for transforming directly using XSLT without the need for Java – 1) XQuery extension function transform:transform(…) which Andrew already mentioned. 2) Some sort of custom pipeline using our Controller XQuery approach 3) XProc pipeline using our XProcXQ 4) XSL-PI Probably best if you join the eXist mailing list for such questions. 2009/9/28 Andrew Welch : > Hi Bill, > > The best thing to do is sign up to one of the mailing lists: > > “xquery talk” http://x-query.com/mailman/listinfo/talk > > “xml dev” http://www.xml.org/xml-dev/ > > Ask your question there, hopefully get a helpful response, and then > the email chain gets archived so its useful for anyone encountering a > similar problem in the future

The rest is here:
Re: Combining XSLT 2.0′s Grouping with eXist


Multi Database Data Templates

In my post on Formatting Concatenated Datasources I mentioned the better way to do thangs was to use a data template to connect and execute queries on each databases and bring back a grouped/formatted data set. So rather than the concatenated data set, thus we use a data template to generate a hierarchical data set thus: Remember, this is executing a query on SQLServer (or other db) to fetch the VENDOR data and executing another ‘child’ query on Oracle (or another db) to fetch the vendor’s PO data. This will allow you to simplify the layout template removing the need for the variables and the XPATH expression

Excerpt from:
Multi Database Data Templates


Fwd: xmlns ignore

Hi, This is a complete code test: //——————————————————————————————————————————— Processor proc = new Processor(false); XQueryCompiler comp = proc.newXQueryCompiler(); XdmNode source = proc.newDocumentBuilder().build(new StreamSource(inputFile)); XQueryExecutable exp = comp.compile(“/NFe/infNFe/ ide /natOp”); XQueryEvaluator eval = exp.load(); eval.setContextItem(source); XdmItem i =eval.evaluateSingle(); System.out.println(i.getStringValue()); XdmValue v = eval.evaluate(); System.out.println(v.size()); //——————————————————————————————————————————— that is the xml file : //——————————————————————————————————————————— 29 123658 Venda – direta …. //——————————————————————————————————————————— The “”http://www.portalfiscal.inf.br/nfe”" return page not found.

Read more from the original source:
Fwd: xmlns ignore


Serialization of XDM

> > > is it important that > > $a[1]/foo/bar is $a[2] > Someone needs to sit down and write down the requirements and use cases . One requirement that someone suggested was of the nature of “lossless round-tripping”. That would imply that given a sequence (N, M), not only does (N is M) retain its value after serialization and parsing, but so does (N/.

View post:
Serialization of XDM


Full Text Grammar ambiguous?

Martin, thanks for the observation! This problem was recently posted in the W3C ‘s bugzilla system: http://www.w3.org/Bugs/Public/show_bug.cgi?id=7247 ..and is currently discussed by the XQFT task force. A decision how to solve to this issue will be posted at the same place in near future. Hope this helps, Christian ___________________________ Christian Gruen Universitaet Konstanz Department of Computer & Information Science D-78457 Konstanz, Germany Tel: +49 (0)7531/88-4449, Fax: +49 (0)7531/88-3577 http://www.inf.uni-konstanz.de/~gruen On Sat, Sep 12, 2009 at 3:27 PM, Martin Probst wrote: > Hi all, > > maybe I’m just a bit late to the party, but is it possible that the > full text grammar from XQFT makes the XQuery grammar ambiguous?

Follow this link:
Full Text Grammar ambiguous?


Local namespace

> XQuery 1.1 is introducing the “private” function modifier, which will > allow the definition of functions that aren’t exported from a module. Simply dropping the namespace requirement and mandating that only the properly namespaced functions are exported might have accomplished the same thing without additional syntax, right

Read more from the original source:
Local namespace


"Pruning" an xml "tree" based on nodes’ ids

> I am trying to prune an xml tree based on known ids for the nodes in that > tree. > > For example if I know that I’m in tree id 1 and the branches I > took in order are 1,4,8, Are you doing this using copy/transform like the last time? What about deleting those nodes with the wrong ID?

Read the original:
"Pruning" an xml "tree" based on nodes’ ids


Schema reporting tools – XQuery use case?

Rick Jelliffe published a number of articles on this, the last one is http://broadcast.oreilly.com/2009/08/ converting -xml-schemas-to-sche-1.html Best Regards, George — George Cristian Bina XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Vyacheslav Sedov wrote: > i am very seriously thinking about XSLT-based convertor from XSD to > Schematron rules – i have opinion that Schematron power underestimated > in XML world > > On Wed, Sep 9, 2009 at 11:55 AM, ricardo > queiros wrote: > > Hi, > > I develop a tool for browsing XML Schema files in a easy way.

View original post here:
Schema reporting tools – XQuery use case?


Page 10 of 13« First...89101112...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