Re: [basex-talk] file names with [] and base-uri
Thanks. As my documents are in a database I can use db:path [1] for now. /Andy [1] http://docs.basex.org/wiki/Database_Module#db:path On 15 December 2014 at 19:58, Christian Grün christian.gr...@gmail.com wrote: Hi Andy, interesting issue. I just tried some other XQuery processors in order to find out how they resolve the name of a local file: • File: [].xml • Query: base-uri(doc('[].xml')) • Saxon: FODC0002: Exception thrown by URIResolver: Invalid relative URI {[].xml}: Illegal character in path at index 0: [].xml • Zorba: [err:FODC0005]: [].xml: invalid URI literal: 91: invalid character c • BaseX: [FODC0005] Invalid document URI: '[].xml'. I have added an issue in the W3 bug tracker [1]; let's wait for the response. Christian [1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=27612
[basex-talk] file names with [] and base-uri
Hi, If I create a database with a file with [] in the name e.g. *bracket[in]name.xml *then /*/base-uri(.) gives the error [XQST0046] URI 'bracket[in]name/bracket[in]name.xml' is invalid. Query: /*/base-uri(.) Is this correct behavior? /Andy
Re: [basex-talk] file names with [] and base-uri
Hi Andy, interesting issue. I just tried some other XQuery processors in order to find out how they resolve the name of a local file: • File: [].xml • Query: base-uri(doc('[].xml')) • Saxon: FODC0002: Exception thrown by URIResolver: Invalid relative URI {[].xml}: Illegal character in path at index 0: [].xml • Zorba: [err:FODC0005]: [].xml: invalid URI literal: 91: invalid character c • BaseX: [FODC0005] Invalid document URI: '[].xml'. I have added an issue in the W3 bug tracker [1]; let's wait for the response. Christian [1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=27612