Import xml with attributes how to apply pagination property

Explorer ,
Sep 07, 2016

Copy link to clipboard

Copied

I have xml files in which the pagination is set by means of an attribute. The value of this attribute must be read and applied to the paragraph format in FrameMaker during the import of the xml files. I assume this must be dealt with by means of the read write rules. But how?

TOPICS
Structured

Views

323

Likes

Translate

Translate

Report

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

1 Correct Answer

Adobe Community Professional , Sep 07, 2016
Lynne A. Price Adobe Community Professional , Sep 07, 2016
Arnor,   To control the paragraph format with an attribute, use format rules in the EDD rather than read/write rules. You can not copy an attribute value to a property value, but can test for specific attribute values and set a property accordingly. For example, if you have an attribute named Widow and are sure the value will never exceed 10, you can tediously have a rule such as:1. If context is: [Widow = "1"]         Pagination properties              Widow/orphan lines: 1    Else, if context ...

Likes

Translate

Translate
Jump to answer Jump to answer
Adobe Community Professional ,
Sep 07, 2016

Copy link to clipboard

Copied

Arnor,

   To control the paragraph format with an attribute, use format rules in the EDD rather than read/write rules. You can not copy an attribute value to a property value, but can test for specific attribute values and set a property accordingly. For example, if you have an attribute named Widow and are sure the value will never exceed 10, you can tediously have a rule such as:

1. If context is: [Widow = "1"]

         Pagination properties

              Widow/orphan lines: 1

    Else, if context is [Widow = "2"]

         Pagination properties

              Widow/orphan lines: 2

            ...

    Else, if context is [Widow = "10"]

         Pagination properties

              Widow/orphan lines: 10

For other paragraph pagination properties, your EDD also needs to test for possible values, for example:

2.  If context is [Placement = "RunIn"]

         Pagination properties

             Placement: Run-in head

                   Default punctuation: .

     Else, if [Placement = "Side"]

             Placement: Side head

Of course, the attribute names can be quite different from FrameMaker's property names or value keywords.

      --Lynne

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Lynne,

Thanks for your clear reply!

I will change my EDD accordingly and keep you posted.

Regards,

Arno

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
arnor33453439 AUTHOR LATEST
Explorer ,
Sep 08, 2016

Copy link to clipboard

Copied

Lynne,

I have changed my EDD. My problem is solved.

Thank you for sharing your knowledge!!

Regards,

Arno

Likes

Translate

Translate

Report

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