[oXygen-user] Non-breaking spaces in fragments via framework

Oxygen XML Editor Support (Radu Coravu) support at oxygenxml.com
Thu Dec 5 23:49:11 CST 2019


Hi Christian,

Please see some suggestions below:

> I tried   which caused my whole framework to NOT be read by Oxygen XML Author.

The " " is an entity reference. If your XML document does not refer 
to a DTD which defines this entity reference.
Also you should use the 
"ro.sync.ecss.extensions.commons.operations.InsertOrReplaceFragmentOperation" 
operation to insert the entity reference.
But whatever operation I'm using I cannot reproduce the part with the 
framework not being read by Oxygen XML Author. Are you manually making 
changes to the ".framework" file or are you using Oxygen's document type 
edit dialog for this?

> I tried   which just created a regular space.

Again, try to use the "InsertOrReplaceFragmentOperation" instead of 
"InsertOrReplaceTextOperation".
As Jirka said, you can also use Oxygen's status bar to look at the 
hexadecimal equivalent of the character


Regards,
Radu

Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

On 12/5/2019 5:39 PM, Christian Achter wrote:
> Dear mailinglist members,
> 
> this might be a trivial problem, but even after a longer research I 
> haven't found a solution to it. I try to insert a non-breaking space via 
> a button created by a framework.
> 
> I use the following code within an <action>:
> 
>      <actionMode>
>          <field name="xpathCondition">
>              <String></String>
>          </field>
>          <field name="argValues">
>              <serializableOrderedMap>
>                  <entry>
>                      <String>text</String>
> *<String>{CODE_FOR_THE_NON-BREAKING_SPACE}</String>*
>                  </entry>
>              </serializableOrderedMap>
>          </field>
>          <field name="operationID">
> <String>ro.sync.ecss.extensions.commons.operations.InsertOrReplaceTextOperation</String>
>          </field>
>      </actionMode>
> 
> I added a placeholder CODE_FOR_THE_NON-BREAKING_SPACE above to show you 
> were I want to fill in my non-breaking space.
> 
> I tried   which caused my whole framework to NOT be read by Oxygen 
> XML Author.
> I tried   which just created a regular space.
> I tried &#160; which just created exactly these characters as a 
> string in my XML document.
> I tried several other things which all didn't work.
> 
> What do I have to put between my opening and closing <String> tags?
> 
> Thanks in advance and kind regards
> Christian Achter
> 
> 
> 
> 
> _______________________________________________
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
> 


More information about the oXygen-user mailing list