beginners only,,,,,just like me..... to be help by expirts l

Questions about XML that are not covered by the other forums should go here.
saqqa
Posts: 5
Joined: Thu Sep 15, 2005 6:55 pm

beginners only,,,,,just like me..... to be help by expirts l

Post 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
:oops:
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Post 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.
saqqa
Posts: 5
Joined: Thu Sep 15, 2005 6:55 pm

thanks........

Post by saqqa »

thanks radu
u r professional............................
i will try.... and i gana back

thanks again champ :)
Post Reply