Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Jul 17, 2010 Jul 17, 2010

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.

TOPICS
Structured
497
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Mentor , Jul 19, 2010 Jul 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

Translate
Mentor ,
Jul 19, 2010 Jul 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 20, 2010 Jul 20, 2010
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines