Page 1 of 1
beginners only,,,,,just like me..... to be help by expirts l
Posted: Sun Sep 18, 2005 7:17 pm
by saqqa
i have this code
{ for $x in doc("Bookstore.xml")/Bookstore/Book return if ($x/Price/@Currency = "USD") then
{$x/Title} else "" }
how can i put it in html file or xsl so i can query xml file
plzzzzzzzzzzz help
Posted: Mon Sep 19, 2005 8:50 am
by Radu
Hi,
The code you presented above is written in the XQuery language.
In order to execute it in Oxygen you have to create a new XQuery document and paste it in the document as follows (notice that the code is surrounded by tags):
Code: Select all
<root>
{
for $x in doc("Bookstore.xml")/Bookstore/Book
return
if ($x/Price/@Currency = "USD") then $x/Title else ""
}
</root>
Then press the "Apply transformation scenario" button on the toolbar, choose the "Execute XQuery" scenario and press "Transform Now".
Hope this helps.
Regards, Radu.
thanks........
Posted: Wed Sep 21, 2005 4:03 pm
by saqqa
thanks radu
u r professional............................
i will try.... and i gana back
thanks again champ