jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Diephouse <dan.diepho...@mulesource.com>
Subject Re: XPath query with space in node name
Date Fri, 21 Dec 2007 00:22:40 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Aha! Thanks - its ISO9075.encode(...). Slightly obscure, but it works.<br>
<br>
Cheers,<br>
- Dan<br>
<br>
Alexandru Popescu ☀ wrote:
<blockquote
 cite="mid:c6f400460712201502na422481p1325db9de97db300@mail.gmail.com"
 type="cite">
  <pre wrap="">On Dec 20, 2007 10:09 PM, Dan Diephouse <a class="moz-txt-link-rfc2396E"
href="mailto:dan.diephouse@mulesource.com">&lt;dan.diephouse@mulesource.com&gt;</a>
wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">OK, I don't know why I didn't just look at the specification first,
but
that helped. I just needed to replace the space with "_x0020_".

Is there a jackrabbit class or a utility class floating around that can
handle all the escaping rules for me?

    </pre>
  </blockquote>
  <pre wrap=""><!---->
Yes, I think there is/are one, but my memory is not helping me right
now (I think they are called something like ISOsomething).

./alex
--
.w( the_mindstorm )p.

  </pre>
  <blockquote type="cite">
    <pre wrap="">Thanks,
- Dan


Dan Diephouse wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Hi all,

I'm trying to query a node which has a space in its name. My initial
attempt was "//Foo Bar" where the node's name is "Foo Bar". But this
doesn't seem to work.

Any advice on what to do? I've tried a whole range of things to no
avail...

- Dan

      </pre>
    </blockquote>
    <pre wrap="">
--
Dan Diephouse
MuleSource
<a class="moz-txt-link-freetext" href="http://mulesource.com">http://mulesource.com</a>
| <a class="moz-txt-link-freetext" href="http://netzooid.com/blog">http://netzooid.com/blog</a>


    </pre>
  </blockquote>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Dan Diephouse
MuleSource
<a class="moz-txt-link-freetext" href="http://mulesource.com">http://mulesource.com</a>
| <a class="moz-txt-link-freetext" href="http://netzooid.com/blog">http://netzooid.com/blog</a></pre>
</body>
</html>

Mime
View raw message