Comma in oxy_editor combobox
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 240
- Joined: Wed Jun 17, 2015 12:46 pm
Comma in oxy_editor combobox
Hello,
I can't solve a problem with an oxy_editor combobox.
From this XML example:
I created an oxy_editor combobox so that the user can choose his item.
As you can see there are two types of titles (title1 / title2).
This is the first version of the CSS code:
It works.
Now, this is the XML to be processed:
The comma in the second title is a problem so I wrote something like that to handle it:
The comma is replaced by a semicolon in the combobox which is a workaround but not a solution.
So my question, do you have a suggestion in order to display a comma instead of the semicolon?
How to escape the comma character inside the oxy_xpath?
Thank you,
Johann
I can't solve a problem with an oxy_editor combobox.
From this XML example:
Code: Select all
<items>
<item>
<title1>item1</title1>
</item>
<item>
<title2>item2</title2>
</item>
<item>
<title1>item3</title1>
</item>
</items>
I created an oxy_editor combobox so that the user can choose his item.
As you can see there are two types of titles (title1 / title2).
This is the first version of the CSS code:
Code: Select all
content: oxy_editor(type, combo, edit, "@attr", editable, false, values, oxy_xpath('string-join(//item/title1 | //item/title2 , ",")'));
It works.
Now, this is the XML to be processed:
Code: Select all
<items>
<item>
<title1>item1</title1>
</item>
<item>
<title2>ite,m2</title2>
</item>
<item>
<title1>item3</title1>
</item>
</items>
Code: Select all
content: oxy_editor(type, combo, edit, "@attr", editable, false, values, oxy_xpath('replace(replace(string-join(//item/title1 | //item/title2 , "!!"), ",", ";"), "!!", ",")'));
So my question, do you have a suggestion in order to display a comma instead of the semicolon?
How to escape the comma character inside the oxy_xpath?
Thank you,
Johann
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: Comma in oxy_editor combobox
Hello,
There is a note in the "Combo Box Form Control" documentation that says:
Best regards,
Mihaela
There is a note in the "Combo Box Form Control" documentation that says:
So, what you have to do is to replace "," with "\\\\," instead of ";".Typically, when you use a comma in the values of a form control, the content that follows a comma is considered a new value. If you want to include a comma in the values, precede the comma with two backslashes.
Best regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
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