Highlighted

How can I eliminate line break after <emphasis> ???

New Here ,
Feb 27, 2017

Copy link to clipboard

Copied

Hi, I am quite new to DTD, and EDD, including read/write rules and things.

The problem is, now I have made a application ready with an EDD based on a DTD, then applied it to an XML file.

(I am using ver2015)

The XML file goes...

<para>123<emphasis><termA>456</termA><emphasis>789</para>

Then displayed as...

123

456

789

However, the result I want is...

123456789

So I tried read/write rule...

writer

{

line break is 1000 characters;

}

However, still the bad line break is inserted after </termA>.

Could please anyone help this situation?

This is an easy fix. The emphasis element must be defined as a text range. It will then work as you expect. Also because you have a nested termA element that too must be a text range. In the edd it will look like this:

eddTextRange.png

The read/write rule that you mention plays no part in the display of text in a structured FrameMaker document. Its purpose is to define the maximum line length for the XML files that FrameMaker creates.

TOPICS
Structured

Views

146

Likes

Translate

Translate

Report

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

How can I eliminate line break after <emphasis> ???

New Here ,
Feb 27, 2017

Copy link to clipboard

Copied

Hi, I am quite new to DTD, and EDD, including read/write rules and things.

The problem is, now I have made a application ready with an EDD based on a DTD, then applied it to an XML file.

(I am using ver2015)

The XML file goes...

<para>123<emphasis><termA>456</termA><emphasis>789</para>

Then displayed as...

123

456

789

However, the result I want is...

123456789

So I tried read/write rule...

writer

{

line break is 1000 characters;

}

However, still the bad line break is inserted after </termA>.

Could please anyone help this situation?

This is an easy fix. The emphasis element must be defined as a text range. It will then work as you expect. Also because you have a nested termA element that too must be a text range. In the edd it will look like this:

eddTextRange.png

The read/write rule that you mention plays no part in the display of text in a structured FrameMaker document. Its purpose is to define the maximum line length for the XML files that FrameMaker creates.

TOPICS
Structured

Views

147

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Feb 27, 2017 0
Enthusiast ,
Feb 28, 2017

Copy link to clipboard

Copied

This is an easy fix. The emphasis element must be defined as a text range. It will then work as you expect. Also because you have a nested termA element that too must be a text range. In the edd it will look like this:

eddTextRange.png

The read/write rule that you mention plays no part in the display of text in a structured FrameMaker document. Its purpose is to define the maximum line length for the XML files that FrameMaker creates.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 28, 2017 1
New Here ,
Feb 28, 2017

Copy link to clipboard

Copied

Thank you so much Ian!!!

I edited EDD as you showed me kindly and it worked!!!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 28, 2017 0