eXide not show any results on screen

386 Views Asked by At

I write this query in eXist-db (eXide):

doc("/db/libros/prueba.xhtml")/html/body/p/a/@href

Find two results: Found 2 in 0.003s

But the screen does not show any

Input document is:

<html>
<head>
    <title> titulo </title>
</head>
<body>
<p class="clase1"> esto es un parrafo <a href="www.wikipedia.com"> wikipedia </a></p>
<p> otro parrafo <a href="www.youtube.com">youtube</a></p>
</body>
</html>

the system is

kernel : Linux 3.5.0-27-generic (x86_64)

Distribution Linux Mint 14 Nadia

eXist Version:  2.0
eXist Build:    20130207
1

There are 1 best solutions below

1
On BEST ANSWER

I think you need to put data() around. Have a look:

data(doc("file:/C:/Users/vgv/Desktop/Testing/Untitled1.xml")/html/body/p/a/@href)

output:

www.wikipedia.com www.youtube.com