Single quotes inserted around parameter value
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 13
- Joined: Thu Oct 01, 2009 9:53 pm
Single quotes inserted around parameter value
Hi,
I'm using Oxygen 11.1 to transform docbook XML into PDF. It's been transforming fine for ages...until recently when I tried setting
the parameter local.l10n.xml to something other than the default value: document(''). When I try to set it back to the default value, the default value is enclosed in single quotes: 'document('')'. Now the transformation scenario doesn't work anymore (error message: The value is not a node-set). I tried removing the single quotes by opening the xpr file and removing them. But they always get put back when I look at the scenario (Configure Transformation Scenario). And the transformation still fails.
How can I get rid of the single quotes?
Thanks
I'm using Oxygen 11.1 to transform docbook XML into PDF. It's been transforming fine for ages...until recently when I tried setting
the parameter local.l10n.xml to something other than the default value: document(''). When I try to set it back to the default value, the default value is enclosed in single quotes: 'document('')'. Now the transformation scenario doesn't work anymore (error message: The value is not a node-set). I tried removing the single quotes by opening the xpr file and removing them. But they always get put back when I look at the scenario (Configure Transformation Scenario). And the transformation still fails.
How can I get rid of the single quotes?
Thanks
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Single quotes inserted around parameter value
Hi,
The single quotes you are seeing are not part of the value, it's just the way a string value is displayed in the table(between quotes).
The problem is that the parameter should be a node-set but it is set by Oxygen as a string. This is actually a bug that we've been investigating.
In your case, resetting the parameter to its default value is simple, just click the Disable button and it will no longer be specified, leaving it to its default value.
Regards,
Adrian
The single quotes you are seeing are not part of the value, it's just the way a string value is displayed in the table(between quotes).
The problem is that the parameter should be a node-set but it is set by Oxygen as a string. This is actually a bug that we've been investigating.
In your case, resetting the parameter to its default value is simple, just click the Disable button and it will no longer be specified, leaving it to its default value.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Single quotes inserted around parameter value
Post by sorin_ristache »
Hello,
Starting with Oxygen 12.2 which will be released in April 2011 each parameter from the XSLT and XQuery transformation scenarios will have an XPath checkbox that will allow setting the type of the parameter to XPath. That means you will select the XPath checkbox for your parameter and will set document('your-document-here.xml') as value. The expression document('path-of-XML-file.xml') will be evaluated as XPath expression and the result will be passed to your XSLT transformation. It will work for the processors that support XPath parameters: Saxon 9 and XSLTProc for XSLT, Saxon 9 for XQuery.
Regards,
Sorin
Starting with Oxygen 12.2 which will be released in April 2011 each parameter from the XSLT and XQuery transformation scenarios will have an XPath checkbox that will allow setting the type of the parameter to XPath. That means you will select the XPath checkbox for your parameter and will set document('your-document-here.xml') as value. The expression document('path-of-XML-file.xml') will be evaluated as XPath expression and the result will be passed to your XSLT transformation. It will work for the processors that support XPath parameters: Saxon 9 and XSLTProc for XSLT, Saxon 9 for XQuery.
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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