Indesign with CALS table
Hi all,
We are in process of automating XML indesign workflow.
We need some input reg. the table handling in XML workflow.
Which type of table is good CALS or Indesign Table.
kavya
It really depends on what you're doing with the XML, and what your tool chain is. If those other tools understand CALS or InDesign out-of-the-box, that's your choice.
Similar Messages
-
[CS3][VBS]Converting a CALS table to Indesign table in XML
Hi!<br /><br />I have an xml-file with tables that I want to import into Indesign. It works fine when I use the Import CALS tables as Indesign tables in "Import options", but the problem is when I do this some emphasis elements inside the "entry" elements isn't found when I try to use XMLRules to format the emphasis elements in the document...<br />The structure of the table can be like this (in general):<br />Tabell<br /> table<br /> tblgrp<br /> tbody<br /> row<br /> <entry>Some text...<emp Type = "bold">bold text</emp></entry><br /> <entry>Some text</entry><br /> <entry>some text</entry><br /> row<br /> tbody<br /> tblgrp<br /> table<br /> Tabell<br /><br />When I import the Table as CALS tables to Indesign tables, the table structure is collapsed into just a <Tabell> element. I assume this is the reason why the <emp> element isn't found.<br /><br />I try to solve this by NOT importing CALS tables to Indesign tables. I see then that the whole table structure is intact in the structure panel and the <emp> elements are also found by the XMLRules, but the contents is not put inside a table in the indesign document. To put the table elements into a table in Indesign I use the Command: "ConvertElementToTable" but this doesnt work very well. I use it in XMLRules like this:<br /><br />Public Property Get xpath()<br />xpath = "//Tabell"<br />End Property<br /><br />Public Function apply(myXMLElement, myRuleProcessor)<br />With myXMLElement<br />.ConvertElementToTable "row", "entry"<br />End With<br />apply = False<br />End Function<br /><br />Does anyone have any experience of importing XML-tables in Indesign and formatting them? I could really need some to put the xml table into Indesign tables...Please help!<br /><br />In advance thanks!
Hi!
Just check the checkbox "Import CALS tables as Indesign tables" in the XML import options dialogbox. Then it should go automatically.
The problem with this approach is that the entire table structure is collapsed to a single table element in the struture. If one want to do some xml-prosessing at row or cell level one need to to this outside indesign or not import CALS as Indesign tables. The big question is if there is some easy way to convert a CALS table to an Indesign table inside Indesign after one have imported the data and prosessed the row and cell elements...
Hope anyone knows more than me about this....
Anyway, mkarthic, I hope my answer helped you to import your CALS tables!:-)
Greetings
Pål -
Import CALS table as Indesign Table
Hi All,
InDesign CS3.
Im working on NLM-DTD, When im importing the xml file into indesign template, i have checked the option "Import CALS table as Indesign table". So it is transfered to table format, after finished the pagination, i want to export the xml file, now the formatting of the table cells (italic, bold, etc) are not coming properly. so i have troubled with this.
Can you help me!!!
Regards,
sudarHello,
Thanks.
Yes, that worked fine. But the small XML file below, containing some titles and a table, does not work. I assumed that I could drag and drop the <informaltable> element onto the page and get a rendered table.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<article lang="en">
<articleinfo>
<pubsnumber>Some number</pubsnumber>
<releaseinfo>Another number</releaseinfo>
<title>A title</title>
</articleinfo>
<informaltable frame="all" rowsep="1" colsep="1">
<tgroup cols="2">
<colspec colname="col_1" colwidth="50*" />
<colspec colname="col_2" colwidth="50*" />
<thead>
<row>
<entry align="left" valign="top" namest="col_1" nameend="col_2">
Some heading here
</entry>
</row>
</thead>
<tbody>
<row>
<entry align="left" valign="top">
Some content in left cell
</entry>
<entry align="left" valign="top">
Some content in right cell
</entry>
</row>
<row>
<entry align="left" valign="top">
Some content in left cell
</entry>
<entry align="left" valign="top">
Some content in right cell
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</article>
Best wishes,
Sven -
[CS4/JS] Import CALS-Tables with merged cells
Hello scripters.
I am actually trying to import CALS-tables (which is in my imported XML) into InDesign.
I used the convertElementToTable for this.
That worked, except for the merged cells (only cells which are merged to two or three columns).
How could I script the automatic generation for merged cells?
My xml-cals-table looks the following:
<example>
<table class="n" width="600" border="0">
<colgroup>
<col width="35%"/>
<col width="30%"/>
<col width="35%"/>
</colgroup>
<tr>
<td colspan="3">
<ta>content content content content content content content content</ta>
</td>
</tr>
<tr>
<td align="left" valign="top">
<ta>content content content content </ta>
</td>
<td align="left" valign="top">
<ta>content content </ta>
</td>
<td align="right" valign="top">
<ta>content content </ta>
</td>
</tr>
<tr>
<td align="left" valign="top">
<ta>content content </ta>
</td>
<td align="left" valign="bottom">
<ta>content content </ta>
</td>
<td align="right" valign="bottom">
<ta>content content </ta>
</td>
</tr>
</table>
</example>
Thanks in advance for any help!
FranziskaHello scripters.
I am actually trying to import CALS-tables (which is in my imported XML) into InDesign.
I used the convertElementToTable for this.
That worked, except for the merged cells (only cells which are merged to two or three columns).
How could I script the automatic generation for merged cells?
My xml-cals-table looks the following:
<example>
<table class="n" width="600" border="0">
<colgroup>
<col width="35%"/>
<col width="30%"/>
<col width="35%"/>
</colgroup>
<tr>
<td colspan="3">
<ta>content content content content content content content content</ta>
</td>
</tr>
<tr>
<td align="left" valign="top">
<ta>content content content content </ta>
</td>
<td align="left" valign="top">
<ta>content content </ta>
</td>
<td align="right" valign="top">
<ta>content content </ta>
</td>
</tr>
<tr>
<td align="left" valign="top">
<ta>content content </ta>
</td>
<td align="left" valign="bottom">
<ta>content content </ta>
</td>
<td align="right" valign="bottom">
<ta>content content </ta>
</td>
</tr>
</table>
</example>
Thanks in advance for any help!
Franziska -
How can I copy and paste table cells from Pages into InDesign with minimum reformating?
How can I copy and paste table cells from Pages into InDesign with minimum reformating?
Do you mean you want to retain the formatting from Pages, or retain formatting already applied in ID?
-
XML-Cals table with aid namespaces
hi at all!
i have a xml-cals table which i'd like to import in indesign including the aid-namespaces especially the tablestyle. for me, it never worked out. is it actually possible to include the aid namespaces in a xml-cals table model?!
thanks in advace
juerschen
this is my cals table:
<eigenschaften_tab>
<table typ="eigenschaften" tab_modell="CALS">
<tgroup cols="2">
<colspec colnum="1" colname="eigenschaft" colwidth="72.87007874021651pt"/>
<colspec colnum="2" colname="ausprägung" colwidth="93.89370078728348pt"/>
<tbody>
<row>
<entry>Standort:</entry>
<entry>hell, halbschattig</entry>
</row>
<row>
<entry>Wuchs:</entry>
<entry>mittel</entry>
</row>
<row>
<entry>Pflanzenschmuck:</entry>
<entry>Blatt</entry>
</row>
<row>
<entry>Farbe:</entry>
<entry>gelb, grün</entry>
</row>
</tbody>
</tgroup>
</table>
</eigenschaften_tab>Hi,
I think that it is not possible because the CALS and InDesign XML are using different namespaces.
-Nissan -
InDesign CC 2014 is very very slow when working with a table.
InDesign CC 2014 is very very slow when working with a table. Every 1/2 - 1 hour it nearly falls back, impossible to work with. While this project must be finshed quite soon..
What the hell is the matter with this Creative Cloud. I havea very fast iMac form 2014. I closed all other programmes, even cannot listen to music now. More people with this problem??
Martien@Martien – How complex is your table?
How many cells? Merged ones as well?
Complex formatting of texts inside the cells?
Complex formatting rules of table rows and/or columns?
Many images inserted?
If yes, and the table is running through many text frames of many pages, I fear, you can do nothing against slowness.
Nothing but: Greek text, not showing the page contents in the Pages Panel, in short: anything you can do to get better performance in redrawing of the screen.
If you have the chance to break up one big table in several parts, do that and edit its parts one after another isolated. Pehaps in different documents.
Then merge the parts in one table, if you want to flow it from page to page.
Uwe -
XSLT to convert CALS tables into html?
This may be the wrong forum to post this, but I don't know
where else I can, so I would very much appreciate if anyone
can suggest where I can find such information.
I need to write XSLT code that will transform
CALS tables that InDesign exports in XML into HTML.
(I can't simply use the xhtml export feature. I need to
do the transformation from XML to HTML.)
For starters, what would be the XSLT code that I would need to convert
aaaa
bbbb
cccc
dddd
eeee
ffff
into
<table>
<tbody>
<tr>
<td>
<p class="pstyle_cell">aaaa</p></td>
<td>
<p class="pstyle_cell">bbbb</p></td>
</tr>
<tr>
<td>
<p class="pstyle_cell">cccc</p></td>
<td>
<p class="pstyle_cell">dddd</p></td>
</tr>
<tr>
<td>
<p class="pstyle_cell">eeee</p></td>
<td>
<p class="pstyle_cell">ffff</p></td>
</tr>
</tbody>
The thing that I am having the most trouble with
is the extraction of the number of rows and columns from
the xml file and creating the appropriate "for" loop
that will get the <tr></tr> tags in the right places in the HTML.
Thanks in advance.
Tak OsatoNot really. It's never a good idea to consider the actual web page creation as an afterthought to the graphical design. In fact many times it's just simpler to start the web page as such and only add graphical fancy if and when needed selectively. Anyway, there are a few sites that offer PSD to HTML conversion, either automatic or as a paid service, but it will never be perfect. It's the same why a CSS or HTML file created using Save for Web always was and at best always can be a crude start. And in light of all the above, of course PS (or Illustrator or InDesign) are not web design tools, not even for the graphical aspects. Rather spend your time with Muse, Fireworks, Edge, Dreamweaver or one of the gigazillion free tools out there more suitably aimed at web stuff than PS ever could...
Mylenium -
CALS tables as external file entities
Hi,
I'm struggling with a problem while reading in XML fileset through importing XSL transformation (defined in structapps).
I've got a main xml document + bunch of separate cals tables, each in it's own file.The location of those tables in the main document are marked with special element.
My import xsl converts those elements to entities and makes local entity declarations creating something like (skipping xml decls etc..):
<!DOCTYPE x [<!ENTITY table1 SYSTEM 'table1.xml']>
<X ...all schema + namespace declarations..>
<para>zzz</para>
&table1;
</X>
file entity table1 has <table> as root element.
XSLT goes fine and FM does not generate any validation errors against the schema. I've checked the tmp-file (created by XSLT) and it looks ok.
But FM refuses to create the tables and flags errors like "Cannot create a new table for the FrameMaker element (table)" and same for every element in cals table.
Tables that are in the main document already cause no hick ups. Also, if I change the content of the file entity to , say, <para>, it works.
BR, MarttiHi Michael,
I use the table model in Frame where table is the actual table and tgroup gets unwrapped by r/w-rules. Tables already in the main xml document (not from file entities) have been working ok all the time.
Funny thing is that wrapping table into para in file entity solved the issue (my schema allows tables in para's too, so not a problem from that side). But I'm curious to understand why this happens.
My understanding of frame's internal behaviour during xml read is that the XSL processing happens outside of frame, frame invokes xalan and passes the xml "as-is" to it and takes the result, parses and validates it. Then into framemaker through r/w rules.
Could it be that that when parser hits a file entity reference and replaces it with actual content, this interferes how frame interpretes the result. Addinf a wrapping element seems to "help" frame to recognize the table. I tested briefly with file entities having just para-type content and frame ate then with no sweat.
Martti -
Problem with automatic table of contents Level headings
I am having trouble with the Table of contents in Adobe Indesign. When I create my automatic table of contents one of the Level headings that is supposed to appear under Chapter 1 instead appears under the Introduction heading. On the actual page where the heading paragraph styles have been defined the 2nd Level heading is as it should be underneath Chapter 1. So what I end up having to do is move them manually in the TOC. But I don’t want to have to do this and it would be great if Indesign instead did the automatic table of contents correctly.
I wonder if it has anything to with the fact that our template is set up with headings (that sit outside the body text to the left) as text boxes which we place inside the main body text box (they have anchored object settings on them so the heading sits off to the side). Whilst the anchored text box is exactly in the right sequence, maybe indesign senses and reads the anchored text box last?
I have an example of the file and the problem that is occurring in the pdf, it can be downloaded from:
Is there a solution to this? If anyone has any ideas I would be very grateful.I've been playing with this for a while, and quite honestly I don't understand why it's doing things the way it is. It's working correctly on Page 11, which seems to me to have exactly the same structure, except for the subtitle. It also works correctly if I copy the frames from page 14 and paste into a new doc.
Things I tried that did not work: Export as .inx and move the pages to a new doc. You might try copying the text and pasting into a new doc. -
Indesign cs3 for table and figure
In Indesign cs3 for table and figure automation scripts
Tables - auto align and place near citation
Figures - place near citation with caption
Its urgentok, well, you may want to ask a question, rather than just stating what you need to do. also, people are helping you for free, so writing it's urgent won't get you very far.
-
Importing graphics in CALS Table XML
Does anyone have an example of how to import a graphic within one of the cells of a CALS table (XML)?
thanksI was able to figure out the problem: the xml has to be declared with http://ns.adobe.com/AdobeInDesign/5.0/, the tablestyle attribute doesnt seem to exist in 4.0.
The export seem to be using 4.0 by default and the pdf sample i was using was refering to "aid5". Nice feature.. but definitively need better documentation and more "realworld" exemples! :)
I will have to play more with this, the import doesnt look good with the 5.0 (there is a bogus row that is added (compared to the same 4.0 declared xml)). -
Performance issues with pipelined table functions
I am testing pipelined table functions to be able to re-use the <font face="courier">base_query</font> function. Contrary to my understanding, the <font face="courier">with_pipeline</font> procedure runs 6 time slower than the legacy <font face="courier">no_pipeline</font> procedure. Am I missing something? The <font face="courier">processor</font> function is from [url http://www.oracle-developer.net/display.php?id=429]improving performance with pipelined table functions .
Edit: The underlying query returns 500,000 rows in about 3 minutes. So there are are no performance issues with the query itself.
Many thanks in advance.
CREATE OR REPLACE PACKAGE pipeline_example
IS
TYPE resultset_typ IS REF CURSOR;
TYPE row_typ IS RECORD (colC VARCHAR2(200), colD VARCHAR2(200), colE VARCHAR2(200));
TYPE table_typ IS TABLE OF row_typ;
FUNCTION base_query (argA IN VARCHAR2, argB IN VARCHAR2)
RETURN resultset_typ;
c_default_limit CONSTANT PLS_INTEGER := 100;
FUNCTION processor (
p_source_data IN resultset_typ,
p_limit_size IN PLS_INTEGER DEFAULT c_default_limit)
RETURN table_typ
PIPELINED
PARALLEL_ENABLE(PARTITION p_source_data BY ANY);
PROCEDURE with_pipeline (argA IN VARCHAR2,
argB IN VARCHAR2,
o_resultset OUT resultset_typ);
PROCEDURE no_pipeline (argA IN VARCHAR2,
argB IN VARCHAR2,
o_resultset OUT resultset_typ);
END pipeline_example;
CREATE OR REPLACE PACKAGE BODY pipeline_example
IS
FUNCTION base_query (argA IN VARCHAR2, argB IN VARCHAR2)
RETURN resultset_typ
IS
o_resultset resultset_typ;
BEGIN
OPEN o_resultset FOR
SELECT colC, colD, colE
FROM some_table
WHERE colA = ArgA AND colB = argB;
RETURN o_resultset;
END base_query;
FUNCTION processor (
p_source_data IN resultset_typ,
p_limit_size IN PLS_INTEGER DEFAULT c_default_limit)
RETURN table_typ
PIPELINED
PARALLEL_ENABLE(PARTITION p_source_data BY ANY)
IS
aa_source_data table_typ;-- := table_typ ();
BEGIN
LOOP
FETCH p_source_data
BULK COLLECT INTO aa_source_data
LIMIT p_limit_size;
EXIT WHEN aa_source_data.COUNT = 0;
/* Process the batch of (p_limit_size) records... */
FOR i IN 1 .. aa_source_data.COUNT
LOOP
PIPE ROW (aa_source_data (i));
END LOOP;
END LOOP;
CLOSE p_source_data;
RETURN;
END processor;
PROCEDURE with_pipeline (argA IN VARCHAR2,
argB IN VARCHAR2,
o_resultset OUT resultset_typ)
IS
BEGIN
OPEN o_resultset FOR
SELECT /*+ PARALLEL(t, 5) */ colC,
SUM (CASE WHEN colD > colE AND colE != '0' THEN colD / ColE END)de,
SUM (CASE WHEN colE > colD AND colD != '0' THEN colE / ColD END)ed,
SUM (CASE WHEN colD = colE AND colD != '0' THEN '1' END) de_one,
SUM (CASE WHEN colD = '0' OR colE = '0' THEN '0' END) de_zero
FROM TABLE (processor (base_query (argA, argB),100)) t
GROUP BY colC
ORDER BY colC
END with_pipeline;
PROCEDURE no_pipeline (argA IN VARCHAR2,
argB IN VARCHAR2,
o_resultset OUT resultset_typ)
IS
BEGIN
OPEN o_resultset FOR
SELECT colC,
SUM (CASE WHEN colD > colE AND colE != '0' THEN colD / ColE END)de,
SUM (CASE WHEN colE > colD AND colD != '0' THEN colE / ColD END)ed,
SUM (CASE WHEN colD = colE AND colD != '0' THEN 1 END) de_one,
SUM (CASE WHEN colD = '0' OR colE = '0' THEN '0' END) de_zero
FROM (SELECT colC, colD, colE
FROM some_table
WHERE colA = ArgA AND colB = argB)
GROUP BY colC
ORDER BY colC;
END no_pipeline;
END pipeline_example;
ALTER PACKAGE pipeline_example COMPILE;Edited by: Earthlink on Nov 14, 2010 9:47 AM
Edited by: Earthlink on Nov 14, 2010 11:31 AM
Edited by: Earthlink on Nov 14, 2010 11:32 AM
Edited by: Earthlink on Nov 20, 2010 12:04 PM
Edited by: Earthlink on Nov 20, 2010 12:54 PMEarthlink wrote:
Contrary to my understanding, the <font face="courier">with_pipeline</font> procedure runs 6 time slower than the legacy <font face="courier">no_pipeline</font> procedure. Am I missing something? Well, we're missing a lot here.
Like:
- a database version
- how did you test
- what data do you have, how is it distributed, indexed
and so on.
If you want to find out what's going on then use a TRACE with wait events.
All nessecary steps are explained in these threads:
HOW TO: Post a SQL statement tuning request - template posting
http://oracle-randolf.blogspot.com/2009/02/basic-sql-statement-performance.html
Another nice one is RUNSTATS:
http://asktom.oracle.com/pls/asktom/ASKTOM.download_file?p_file=6551378329289980701 -
Issue with Multiple Tables in Report
Post Author: dwessell
CA Forum: General
Hi,
I'm using Crystal Reports 2k8.
I'm doing a report with three tables, CQ_HEADER, SO_HEADER and SALESPERSON. Both the CQ_HEADER and the SO_HEADER tables link to the SALESPERSON table via a SPN_AUTO_KEY field.
However, I always receive duplicates in my result set, due to the joins made, and I don't receive results that are valid in one table, and empty in another (Such that it only counts a CQ, if there is a SO associated with it. Here's the query that's produced by CR.
SELECT "CQ_HEADER"."CQ_NUMBER", "CQ_HEADER"."ENTRY_DATE", "CQ_HEADER"."TOTAL_PRICE", "SALESPERSON"."SALESPERSON_NAME", "SO_HEADER"."ENTRY_DATE", "SO_HEADER"."TOTAL_PRICE"
FROM "CQ_HEADER" "CQ_HEADER" INNER JOIN ("SO_HEADER" "SO_HEADER" INNER JOIN "SALESPERSON" "SALESPERSON" ON "SO_HEADER"."SPN_AUTO_KEY"="SALESPERSON"."SPN_AUTO_KEY") ON "CQ_HEADER"."SPN_AUTO_KEY"="SALESPERSON"."SPN_AUTO_KEY"
WHERE ("CQ_HEADER"."ENTRY_DATE">={ts '2007-12-01 00:00:00'} AND "CQ_HEADER"."ENTRY_DATE"<{ts '2007-12-18 00:00:00'}) AND ("SO_HEADER"."ENTRY_DATE">={ts '2007-12-01 00:00:00'} AND "SO_HEADER"."ENTRY_DATE"<{ts '2007-12-18 00:00:00'})
ORDER BY "SALESPERSON"."SALESPERSON_NAME"
There is no link between the SO_HEADER and the CQ_HEADER. Can anyone make a suggestion as to how I could go about structuring this such that it doesn't return duplicate values?
Thanks
DavidHey,
I understand you used Retainsameconnection property true for all the OLEDB connections you used in the package if not make sure its for all the connection including file connection as well.
Additionally, you can try to set Delayvalidation property to true for all the dataflows and control flows in the connection and try running the package for 10MB file.
I hope this will fix the intermittent failure issue you are facing with SSIS.
(Please mark solved if I've answered your question, vote for it as helpful to help other user's find a solution quicker)
Thanks,
Atul Gaikwad. -
Populating the cache with VPD tables fails
Using the Add Tables wizard I am trying to add tables to an Oracle Database cache. The tables have had RLS policies applied using the DBMS_RLS package. The Add Tables wizard fails with an ORA-28112 error (failed to execute policy function).
Are there any known problems with cacheing tables of a virtual private database?
Of course we want to cache an entire table, not just a portion as defined by that table's security policy. We have a procedure call that can cause the security policy to return a null predicate (effectively turning off security for all tables). We have set up a logon trigger to run this procedure for the user that populates the cache (we have done this successfully for other users), but we still get the error.
Any help?
Cache system:
SPARC/Solaris 8
9iAS 1.0.2.1
Oracle EE 8.1.7.0
Origin database:
SPARC/Solaris 8
Oracle EE 8.1.7.0
Thanks,
SteveSteve,
In my opinion you should look first into the trace files. They are generally located under
USER_DUMP_DEST directory. I believe that this error normally generates a trace file. So in the trace file you can see that it was trying to do and what happened. Also this may be happening due to some permission problems as well e.g. logged user versus policy user etc.
HTH
Prakash
null
Maybe you are looking for
-
Hi Expert , Is possible to take Print View , Print out of Good Receipts and Goods Issue ? Please help me .
-
I have CS5 Master on my computer. I downloaded CS6 Photoshop beta. After downloading, I clicked on set-up.exe in the WINZIP folder. I get the following error: Installer failed to initialize. This could be due to a missing file. Please download Ad
-
Hi, Where can I find out the hierarchy for Receipt Routings? The field (Standard, Direct Delivery or Inspection Required) can be set at 3 different places, Org level, Supplier level and PO level. Which one wins when a PO is created for an item? Thank
-
Is there a discount to buy HD after buying a show in SD?
I recently upgraded to a Macbook Pro and after watching some of my purchased items noticed how much better the HD is than the SD. I was wondering if I still had to pay full price to buy the HD version of the movie if I already own the SD version?
-
Where is the movie I just rented on my IPad? I can't find it.
I downloaded a movie from the ITunes app on my IPad. Now I cannot find the movie to view it on my Ipad. Where is it? I hope someone can help me out. This is pretty embarrassing. It was definitely downloaded as a rental, and the money has been rede