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 » Sun Sep 18, 2005 7:17 pm

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: 6579
Joined: Fri Jul 09, 2004 5:18 pm

Post by Radu » Mon Sep 19, 2005 8:50 am

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 » Wed Sep 21, 2005 4:03 pm

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

thanks again champ :)

Post Reply