if you are a human please do not click here
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Username :
Password :
Home
Help
Calendar
Register
Login
XMetaL Community Forums
»
General
»
General XMetaL Discussion
»
Align Table next to each other
Pages:
1
« previous
next »
Print
Author
Topic: Align Table next to each other (Read 6982 times)
linjinwei
Member
Posts: 65
Align Table next to each other
«
on:
November 26, 2008, 06:48:56 PM »
Can anybody tell me how do you align 2 tables next to each other?
I tried setting one align left and one align right, but always end up one above another. Like the example below...I just need them to be side by side. Thanks in advance
Table 1
Table 2
Logged
dcramer
Member
Posts: 120
Re: Align Table next to each other
«
Reply #1 on:
November 26, 2008, 06:51:44 PM »
Have you tried nesting them in another two column, one row table?
Logged
David Cramer
Technical Writer
Motive, an Alcatel-Lucent Company
mag3737
XMetaL Evangelist
Administrator
Member
Posts: 100
I even use XMetaL to write my business letters.
Re: Align Table next to each other
«
Reply #2 on:
November 26, 2008, 07:12:42 PM »
If you're looking for showing tables side-by-side within the XMetaL editor, the only way will be to have nested tables such as what dcramer suggests. (Note that DITA doesn't support nested tables, so if you're in DITA you won't have that option.)
If you're talking about having the tables side-by-side in your output, this is an XSLT question (or in DITA, a DITA OT + XSLT question), which makes it a whole 'nother can of worms.
Logged
Tom Magliery
JustSystems Canada, Inc.
linjinwei
Member
Posts: 65
Re: Align Table next to each other
«
Reply #3 on:
November 26, 2008, 10:01:51 PM »
Thanks for the reply. I believe nesting tables in table is the solution
Logged
LeoraBetesh
Member
Posts: 8
Re: Align Table next to each other
«
Reply #4 on:
March 05, 2009, 06:27:44 AM »
I am just curious, why do you say that DITA doesn't support nested tables? We have used nested tables in DITA 1.1
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member
Posts: 1550
Re: Align Table next to each other
«
Reply #5 on:
March 05, 2009, 04:26:12 PM »
For fear of getting off topic (given linjinwei's other posts, I strongly suspect the original question was meant to be asked in the context of the DITA DTDs) the DITA DTDs do support nested tables. I will also make the assumption that we're talking about CALS tables in DITA, which use
<table>
as the main element. What they do not support is the
<table>
element directly inside an
<entry>
element.
In order to insert a
<table>
within another
<table>
you need to place the nested (second level)
<table>
within a
<p>
or similar element (others include
<lq>
and
<ul><li></li></ul>
or
<ol><li></li></ol>
).
To get really technical about the DTDs:
...the definition for
<entry>
(within tblDecl.mod) is as follows:
<!ELEMENT entry %tbl.entry.mdl;>
...and tbl.entry.mdl is defined as:
<!ENTITY % tbl.entry.mdl "(%paracon;)*">
...and paracon is defined as:
<!ENTITY % paracon '%tblcell.cnt;'>
...and tblcell.cnt (within commonElements.mod) is defined as:
<!ENTITY % tblcell.cnt "#PCDATA | %basic.ph; | %basic.block.notbl; | %txt.incl; | %data.elements.incl; | %foreign.unknown.incl;">
...and (because this entity expansion goes on for a lot longer) suffice it to say that each of the entities listed there can contain various other elements (after expansion), but not all of them allow
<table>
, and
<entry>
itself cannot contain
<table>
directly.
However, because humans are not normally meant to read and understand all of this stuff (hopefully that's why you are using XMetaL Author Enterprise rather than coding your XML in Notepad) I would recommend the following:
1) Trust that what is displayed in the Element List is correct and coming directly from the DTD in current use (including DITA versions, which may vary), and limited to those elements currently allowed in TagsOn or Normal view according to your current selection.
2) Within any element press Alt+F1 to be taken to the DITA Language Reference topic for that element. Each topic for each element includes a section called "Contains" which lists all the allowable child elements. If you see one listed there that the Insert menu does not list or that for whatever reason tries to "help" you with (by inserting something else or whatever) you can use the Element List to insert it. Ultimately, the Element List should give you more control (at the expense of you needing to know exactly what you are doing).
Now, having said all of this, I do not know to what extent the DITA OT supports nested tables for every possible output format.
Note 1:
If a post has anything remotely to do with DITA or the DITA OT
please
post it in the correct board: "DITA and XMetaL Discussion". That gives people the correct context to work within, provided you have not customized the DITA OT, etc (in which case, please also let people know that).
The board called "General XMetaL Discussion" is for postings about XMetaL Author whenever DITA is
not
involved (ie: for all other DTDs and Schema) or when functionality is not specific to DITA.
If you aren't sure then please at a minimum mention which DTD or Schema you are working with.
Note 2:
If this question was really meant to be posted in "General XMetaL Discussion" there is no way to answer this without knowing which DTD or Schema is being used because that is ultimately what decides what is allowed, not XMetaL. XMetaL just reads the rules in the DTD or Schema and enforces them. Some implementations of the CALS or HTML table models allow nested tables but is very easy to write a DTD or Schema that does not allow this.
«
Last Edit: March 05, 2009, 06:26:41 PM by Derek Read
»
Logged
Pages:
1
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Forum Information
=> General XMetaL Discussion
=> DITA and XMetaL Discussion
=> XMetaL Tips and Tricks
=> XMetaL Announcements and Events
Loading...
email us