Comma in oxy_editor combobox
Posted: Fri Nov 04, 2022 1:27 pm
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