Quantcast
Channel: Adobe Community : Popular Discussions - FrameMaker Structured
Viewing all articles
Browse latest Browse all 66580

Can you reorder cells using Read/Write rules?

$
0
0

I’m trying to reorder some table cells during conversion from SMGL to FM10, but I think the Read/Write rules don’t really do what I want them to do.

 

Here’s what I’ve got in SGML:

<data>

               <cus>B</cus>

               <mod>A</mod>

               <cec>D</cec>

               <acn>C</acn>

</data>

 

What I want is:

A

B

C

D

 

My read/write rules are:

}

element "data" {

  is fm table row element;

}

element "cus" {

  is fm table cell element;

  fm property column number value is "2";

  fm property row type value is "Data";

}

element "mod" {

  is fm table cell element;

  fm property column number value is "1";

  fm property row type value is "Data";

}

element "cec" {

  is fm table cell element;

  fm property column number value is "4";

  fm property row type value is "Data";

}

element "acn" {

  is fm table cell element;

  fm property column number value is "3";

  fm property row type value is "Data";

}

 

What I end up with is each element in its proper cell, but not in the same row:

 

B

 

 

A

 

 

D

 

 

C

 


My guess it that FM reads down the SGML and applies the rules to each line as it comes to it, therefore it reads the first line and puts “B” in column 2, then it reads the second line and puts “A” in the next available column 1, which is actually in the next row. Is there a way to keep them in the same row without changing the SGML?

 

Thanks!

ebpdx


Viewing all articles
Browse latest Browse all 66580

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>