File reference using a Transformation Scenario
Issues related to W3C XQuery.
-
- Posts: 1
- Joined: Tue Oct 18, 2011 7:59 am
File reference using a Transformation Scenario
Hi,
I want to use Transformation Scenario to configure an input xml file to the Xquery that I am writing. I created a new scenario and selected a file. But how do I access it in the Xquery ? i.e inside doc() function.
If I explicitly specify it , we will write doc("input.xml")
I know it is very trivial , but I cannot find it out.
I am using Oxygen 13.0
I want to use Transformation Scenario to configure an input xml file to the Xquery that I am writing. I created a new scenario and selected a file. But how do I access it in the Xquery ? i.e inside doc() function.
If I explicitly specify it , we will write doc("input.xml")
I know it is very trivial , but I cannot find it out.
I am using Oxygen 13.0
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: File reference using a Transformation Scenario
Hi,
Instead of using doc just try writing the XPath directly.
Example:
can be re-written like:
Regards,
Radu
Instead of using doc just try writing the XPath directly.
Example:
Code: Select all
declare variable $oxy:products as document-node() := doc("products.xml");
Code: Select all
declare variable $oxy:products as document-node() := /;
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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