Re: [Sedna-discussion] error load xml file, which it's name contain "&" or "&"
Sedna is a native full-featured XML database management system.
Brought to you by:
mozinsur,
shcheklein
From: Ivan S. <shc...@gm...> - 2012-01-23 09:27:21
|
Hi Aris, In XQuery & (ampersand symbol) must be passed (escaped) as char-ref (e.g. predefined one - &) in any string literal: http://www.w3.org/TR/xquery/#prod-xquery-StringLiteral Ivan Shcheklein, Sedna Team Hi, > > I have an error when loading an xhtml file into a collection, which > it's file name contains "&" ( I have cralwed this file using wget ). > The errors are: > > SEDNA Message: ERROR XPST0003 > It is a static error if an expression is not a valid instance of the > grammar defined in A.1 EBNF. > Details: at (1:6), invalid string literal > at (1:6), syntax error, unexpected lexical error, expecting > end of file or statement separator > > > load 'www.a-site.or.id/stories.php?catid=8&start=30.xml' > 'www.a-site.or.id/stories.php?catid=8&start=30' 'shahihdb' > > > I can't change this file name format, because it referenced from > inside the document. > > How to work around with this? > > regards, > -aris > |