MENU
Node Functions
<?xml version="1.0"?> <menu restaurant="Golden Outlet" xmlns:ns="http://example.com" xml:lang="en"> <dish xml:id="1">Satay <i>Cooked</i></dish> <drink id="2">Cola</drink> <dish id="3">Curry Chicken</dish> <dish id="4" xmlns="http://example.com"> Sweet and Sour Pork </dish> </menu> |
|
|
dish |
namespace-uri(menu/ns:dish) | http://example.com |
|
/home/project-web/videlibri/cgi-bin/ |
|
(empty) |
|
Satay Cooked Cola Curry Chicken Sweet and Sour Pork |
(1) path() (2) path(.) |
/ |
innermost(menu) GIVES
|
|
outermost(menu/dish/i) GIVES <?xml version="1.0"?> <menu restaurant="Golden Outlet" xmlns:ns="http://example.com"> <dish id="1">Satay <i>Cooked</i></dish> <drink id="2">Cola</drink> <dish id="3">Curry Chicken</dish> <dish id="4" xmlns="http://example.com"> Sweet and Sour Pork </dish> </menu> |
|
nilled(menu) | false |
|
true |
|
true |
generate-id() |