You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Alexander Klimetschek <ak...@adobe.com> on 2012/12/11 15:40:16 UTC

[Xpath] fn:name() requires ISO9075 encoding?

Hi,

is it right that fn:name() = 'name' requires "name" to be ISO9075 encoded just like with normal location steps? I.e. for names starting with a digit (1_something).

Cheers,
Alex

RE: [Xpath] fn:name() requires ISO9075 encoding?

Posted by Marcel Reutegger <mr...@adobe.com>.
Hi Alex,

yes, you need to encode the name in the string literal.

See test class for an example:
https://svn.apache.org/repos/asf/jackrabbit/branches/2.4/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/FnNameQueryTest.java

Regards
 Marcel 

> -----Original Message-----
> From: Alexander Klimetschek [mailto:aklimets@adobe.com]
> Sent: Dienstag, 11. Dezember 2012 15:40
> To: users@jackrabbit.apache.org
> Subject: [Xpath] fn:name() requires ISO9075 encoding?
> 
> Hi,
> 
> is it right that fn:name() = 'name' requires "name" to be ISO9075 encoded
> just like with normal location steps? I.e. for names starting with a digit
> (1_something).
> 
> Cheers,
> Alex