Fix "planets" example
Move hello world example to documentation

Also update the index files
Bugfix for xpath expressions foo(bar(arg),x)

There was a nasty error with the following type of xpath
expressions:

sd:format-number(sd:format-string(123.456,'%.2f'), '.', ',')

where the first closing paren was ignored.