Copy link to clipboard
Copied
I have created a cross-reference element definition that works fine, except that I cannot type anything after it. For example I would like to write "For more information, see xyz. The section abc might also be useful" where "xyz" and "abc" are cross-references. But when I try to type after the first cross-reference I cannot get the cursor to position itself after ''z" in the cross-reference "xyz". It remains in front of the cross-reference and wont let me get past it. The only work around is to use a new Para element, which is not what I want. Would anyone kindly have a solution? Many thanks.
1roach,
It sounds like your general rule for the Para element needs to be adjusted. I would guess that it is something like:
<TEXT>, xref
That means that a text node is only valid one time, as the first child of the Para, then an xref, then nothing else. You'll need something like:
(<TEXT>, xref)*
Hope that helps. If not, please paste your general rule for the Para element here so we can have a look.
Russ
Copy link to clipboard
Copied
1roach,
It sounds like your general rule for the Para element needs to be adjusted. I would guess that it is something like:
<TEXT>, xref
That means that a text node is only valid one time, as the first child of the Para, then an xref, then nothing else. You'll need something like:
(<TEXT>, xref)*
Hope that helps. If not, please paste your general rule for the Para element here so we can have a look.
Russ
Copy link to clipboard
Copied
Many thanks Russ, your solution works fine. I had been using (<TEXT> & xref*) so had got a bit mixed up. Thanks again.