hi david

did you read section "3.4.4 Absolute and Relative Paths" in the
jsr 283 specification? from my point of view this section quite
nicely puts the differences between absolute and relative paths.

as a rule of thumb i think it's fair to say that relative paths
are used to access an item from another (or creating it).
in contrast absolute paths are used in the other situations;
be it accessing a item from the session or across workspace
or for all kind of item manipulation within the various *Manager classes.

hope that helps
angela

while implementing the jcr interfaces in php [1] we are a bit confused
about access by relative path [2].

what is a valid relative path? if it would be just names without any
"/", it would be straightforward. but at least jackrabbit can handle
../somethingelse or child/propertyname as path.

however, /somethingelse triggers an invalidargumentexception that no
absolute path is allowed. what is the reason for that? it is not harder
to resolve than a path like ../somethingelse

can somebody explain why its like this? at the moment, it seems like
being overly picky without a technical reason to be strict.

cheers,david


[1] http://jackalope.github.com
[2]
http://www.day.com/specs/jcr/2.0/5_Reading.html#5.1.6%20Access%20by%20Relative%20Path

- --
Liip AG // Agile Web Development // T +41 26 422 25 11
CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3uHRoACgkQqBnXnqWBgIsavQCguWYFolZxBZu0e3U8KpfWPjSI
XtIAn0IQgMjV6gGJ63s30nbz1PntckTv
=pVfa
-----END PGP SIGNATURE-----

Reply via email to