[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

FW: Unexpected token syntax error, unexpected DeclareFunction_

G. Ken Holman gkholman at CraneSoftwrights.com
Thu Oct 1 19:29:31 PDT 2009


 FW:  Unexpected token syntax error
At 2009-10-01 15:18 -0700, Anil Shekhar wrote:
>Thanks Ken.  It worked.  I did learn something new today.
>
>I am able to successfully read from a database.  However if I add the argum=
>ent to doc() to read files from the file system I do not see anything being=
>  displayed - blank page.
>
>for $d in doc("file:///C:/Users/ashekhar/Desktop/Mark Logic/Shakespeare/*.x=
>ml")
>
>Can you please help me understand?

Perhaps it is because you've used a singleton access function (the 
doc() function returns a single root node for the one document you 
are addressing) with a wildcard "*.xml" URI implying multiple documents.

If you want multiple documents returned with a single call, use the 
collection() function, but ensure first that the syntax you use in 
your URI is supported by the vendor of the XQuery tool.  All URI 
strings for accessing resources are implementation defined and not 
standardized.

I hope this helps.

. . . . . . . . . . . . Ken


--
Upcoming hands-on code list, UBL, XSLT, XQuery and XSL-FO classes.
Interested in other classes?  http://www.CraneSoftwrights.com/q/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/q/
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:http://x-query.com/mailman/listinfo/talk
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/q/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal



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
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-2007 All Rights Reserved.