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.
beginners only,,,,,just like me..... to be help by expirts l
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
{ 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
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):
Then press the "Apply transformation scenario" button on the toolbar, choose the "Execute XQuery" scenario and press "Transform Now".
Hope this helps.
Regards, Radu.
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>
Hope this helps.
Regards, Radu.
Return to “General XML Questions”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service