Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Can I display a non-table on the screen?
Arbortext FOSI Reference PDF talks about translating non-table data into an informal table (page 120 - and the example runs off the page).
I can turn on gen text tags and the tags look great. Turn the tags off and I get the data I want, one row per line as <table>, one entry per line as <informaltable>. Mo tags, but just all squished to the left - no table columns.
I get the feeling I just spent a few hours figuring out something else FOSI won't actually display on the screen.
Here's the table source:
<usetext source="!<table frame="all" id="temptable001" orient="port"><tgroup cols="10"><thead></thead><br /><colspec colname="col1"><colspec colname="col2"><colspec colname="col3"><colspec colname="col4"><colspec colname="col5"><br /><colspec colname="col6"><colspec colname="col7"><colspec colname="col8"><colspec colname="col9"><colspec colname="col10"><br /><tbody>!,table.app,!</tbody></tgroup></table>!" placemnt="after">
</usetext>
<reset resetlist="table.app">
Here's the row source:
<savetext textid="table.app" conrule="!<row>!,row.app,!</row>!" placemnt="after" append="1">
<reset resetlist="row.app">
And here's an entry:
<savetext textid="row.app" conrule="!<entry colname="col1">!,#CONTENT,!</entry>!" append="1">
The outputted tags look great when turned on, looks great with tags turned off...but no columns. Am I just wasting my time trying?
John T. Jarrett
BAE Systems | Arbortext version 5.4 | LOGSA XSL-FO v 1.5
Jarrett,
The FOSI doesn't actually control the display of the CALS table on the screen. Though you can modify it somewhat for look and feel, the actual building of the lines, sizing, columns and rows is sort of built in.
You're going about this in the correct way, however what's happening is that the "table" you're creating is broke. When the Editor attempts to display table markup that is out of context, it will show the entire table as tags slammed to the left. This is "normal" behavior.
If you look at your source code in the usetext, you have "...<thead></thead>...". You also build your "row.app" with a single entry ascolname="col1". Right off the bat, thead requires a minimum of one row. But if you're not going to have a <thead>,don't use it at all because it's optional.Since you're not spanning columns, EVERY row must have exactly ten entries since that is what you've defined in cols="10" in <tgroup>. Also, tgroup is suppose to contain the colspec elements before thead... I'll stop there... You need to methodically build your table from the ground up.
In the %arbortext install%l\entities folder, you'll find a DTD named "38784C.dtd". This DTD will show you the default model for the CALS table. When you build your psuedo table, you must keep the structure intact, or the Editor will not show you a graphic representation of the table. Play with generating a simple table first to ensure it's working for you the way you expect. Then modify it with the building of more columns, row.app, and so on.
Hope this helps,
Bob
In Reply to John Jarrett:
Can I display a non-table on the screen?
Arbortext FOSI Reference PDF talks about translating non-table data into an informal table (page 120 - and the example runs off the page).
I can turn on gen text tags and the tags look great. Turn the tags off and I get the data I want, one row per line as <table>, one entry per line as <informaltable>. Mo tags, but just all squished to the left - no table columns.
I get the feeling I just spent a few hours figuring out something else FOSI won't actually display on the screen.
Here's the table source:
<usetext source="!<table frame="all" id="temptable001" orient="port"><tgroup cols="10"><thead></thead><br /><colspec colname="col1"><colspec colname="col2"><colspec colname="col3"><colspec colname="col4"><colspec colname="col5"><br /><colspec colname="col6"><colspec colname="col7"><colspec colname="col8"><colspec colname="col9"><colspec colname="col10"><br /><tbody>!,table.app,!</tbody></tgroup></table>!" placemnt="after">
</usetext>
<reset resetlist="table.app">Here's the row source:
<savetext textid="table.app" conrule="!<row>!,row.app,!</row>!" placemnt="after" append="1">
<reset resetlist="row.app">And here's an entry:
<savetext textid="row.app" conrule="!<entry colname="col1">!,#CONTENT,!</entry>!" append="1">
The outputted tags look great when turned on, looks great with tags turned off...but no columns. Am I just wasting my time trying?
John T. Jarrett
BAE Systems | Arbortext version 5.4 | LOGSA XSL-FO v 1.5