Highlighted

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?

Adobe Community Professional
Correct answer by Lynne_A__Price | Adobe Community Professional

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

TOPICS
Structured

Views

309

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

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?

Adobe Community Professional
Correct answer by Lynne_A__Price | Adobe Community Professional

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

TOPICS
Structured

Views

310

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
Sep 07, 2016 0
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
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 07, 2016 1
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
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 08, 2016 0
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
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 08, 2016 0