Custom InsertFragementOperation dropping "/"
Posted: Tue Oct 10, 2017 8:01 pm
I have a custom action InsertFragmentOperation with the fragment shown below. For some reason the "/" in the formulas are disappearing when the fragment is inserted. Is there a way to escape the "/" character or something to avoid this dropped character?
Code: Select all
<formula-group>
${ask('Formula', combobox, ('<equation>Result = (<i>r</i><i><sub>U</sub></i>/<i>r</i><i><sub>S</sub></i>) × (<i>C</i><i><sub>S</sub></i>/<i>C</i><i><sub>U</sub></i>) × 100</equation>
<simpletable>
<strow>
<stentry><i>r</i><i><sub>U</sub></i></stentry>
<stentry>= peak response from the <i>Sample solution</i></stentry>
</strow>
<strow>
<stentry><i>r</i><i><sub>S</sub></i></stentry>
<stentry>= peak response from the <i>Standard solution</i></stentry>
</strow>
<strow>
<stentry><i>C</i><i><sub>S</sub></i></stentry>
<stentry>= concentration of <?placeholder-text text="[Insert RS Conref]"?> in the <i>Standard solution</i> (mg/mL)</stentry>
</strow>
<strow>
<stentry><i>C</i><i><sub>U</sub></i></stentry>
<stentry>= nominal concentration of <?placeholder-text text="[drug substance]"?> in the <i>Sample solution</i> (mg/mL)</stentry>
</strow>
</simpletable>':'Result = (rU/rS) × (CS/CU) × 100';
'<equation>Result = (<i>A</i><i><sub>U</sub></i>/<i>A</i><i><sub>S</sub></i>) × 100</equation>
<simpletable>
<strow>
<stentry><i>A</i><i><sub>U</sub></i></stentry>
<stentry>= absorbance of the <i>Sample solution</i></stentry>
</strow>
<strow>
<stentry><i>A</i><i><sub>S</sub></i></stentry>
<stentry>= absorbance of the <i>Standard solution</i></stentry>
</strow>
</simpletable>':'AU/AS × 100';
'<equation>Result = </equation>
<simpletable>
<strow>
<stentry></stentry>
<stentry></stentry>
</strow>
<strow>
<stentry></stentry>
<stentry></stentry>
</strow>
</simpletable>':'Insert empty template'), 'Insert empty template'}
</formula-group>