Skip to main content
Known Participant
July 18, 2010
Answered

How do I keep on typing after a cross-reference?

  • July 18, 2010
  • 1 reply
  • 532 views

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.

This topic has been closed for replies.
Correct answer Russ Ward

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

1 reply

Russ WardCorrect answer
Legend
July 19, 2010

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

1roachAuthor
Known Participant
July 21, 2010

Many thanks Russ, your solution works fine. I had been using (<TEXT> & xref*) so had got a bit mixed up. Thanks again.