DITA and XMetaL Discussion
XMetaL Community Forum › DITA and XMetaL Discussion › Table rows in XMAX
-
dduffy March 16, 2015 at 6:34 pm
Table rows in XMAX
March 16, 2015 at 6:34 pmParticipants 2Replies 3Last Activity 8 years agoIn XMAX, there does not seem to be a way to align all rows in a table at one time or am I missing something. You can table align multiple rows in XMEE. Will this be included in the future?
Derek Read March 16, 2015 at 7:29 pm
Reply to: Table rows in XMAX
March 16, 2015 at 7:29 pmCan you please provide a bit more detail?
The best (most unambiguous) information to provide would be an example of what the XML source looks like before and after the modification you are asking about.
If you can post an example of the entire (and preferably small) table that would be best. We would then know which table model is being discussed and the elements and / or attributes in that table model you are referring to when you say “align”. Then if there is an easy way to make those changes using the UI I can probably state how that can be done. If there is no built-in method then perhaps a solution can be provided via scripting or some other means.
Obviously, since XMAX does not provide the equivalent of the “Table Properties” dialog that XMetaL Author includes, you need to build your own for XMAX (so if you have something it might need to be extended). Depending on what we're talking about, it may or may not be possible to build exactly the same feature (if it exists in XMetaL Author).
dduffy March 16, 2015 at 7:39 pm
Reply to: Table rows in XMAX
March 16, 2015 at 7:39 pmThis is a default table in XMEE 8.0:
Value Description Value 1 This is value 1. It can have multiple values.
Value 2 This is value 2. It can have multiple values.
Value 3 This is value 3. It can have multiple values.
Value 4 This is value 4. It can have multiple values.
Value 5 This is value 5. It can have multiple values.
To align each row, it looks like this:
Value Description Value 1 This is value 1. It can have multiple values.
Value 2 This is value 2. It can have multiple values.
Value 3 This is value 3. It can have multiple values.
Value 4 This is value 4. It can have multiple values.
Value 5 This is value 5. It can have multiple values.
Basically, in XMEE 8.0 you can select the entire table Tablbe Propteries > Row and change the vertical alignment to the rows all at once. In XMAX, if you select all the row and do the same steps, only the first row in the series is aligned.
Derek Read March 26, 2015 at 1:00 am
Reply to: Table rows in XMAX
March 26, 2015 at 1:00 amIf you select more than one cell in a table and then use the Selection or Range APIs they will only return the start of the selection. There is no way to obtain the start and end or something equivalent to that, so there would also be no way to walk through multiple cells (their elements) and set attributes for each.
There is also no Table Properties dialog provided with XMAX. I guess that would be the ideal.
To allow users to set attributes on multiple table cells (elements) with the current releases of XMAX I guess you would need to provide an alternative type of UI. You could prompt the user for the number of cells / rows to set the attribute for starting from the first one.
-
AuthorPosts
- You must be logged in to reply to this topic.