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)?
thanks

I 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)).

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

  • [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!
    Franziska

    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!
    Franziska

  • 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

  • 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,
    sudar

    Hello,
    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

  • 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 Osato

    Not 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, Martti

    Hi 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

  • How to handle error when importing taxonomy for product using XML?

    We are on MDM 5.5 and built a repository for SAP R/3 Material Master. It has basic material information and taxonomy information as well. We built an import map based on an XML file, which includes basic info as well as taxonomy (classification) info. The import process runs smoothly. But if the import file includes some materials which characteristic values don't exist in MDM, the import will fail and exception file has a complete different format as our import file also it only display one material. Therefore, we cannot reprocess the exception file for errorred out items. What could we do wrong? By the way, we use "Create Pivot table" option in MDM to create the original import map.

    Hi Micheal,
    I Think your problem is similar to the below one,you can refer the below link for the same.
    Import file using Pivot Tables
    What you need to make sure is that you are using the same structure of the source file for importing as you used while creating the map else it wont work.
    Your schema of the source file as well the schema used when creating the map must match.
    You can refer the below links to know more about Taxonomy data importing:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30aa1447-80a1-2a10-e483-a76087bcb12f
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6090d0bd-1da7-2a10-468f-bdd17badb396
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8090941f-a5a7-2a10-3ba6-b4af5ec6d97b
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/308c62a2-5faa-2a10-fda6-fa4aa7169734
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • Importing data from one table to another in the same schema

    I know this possibly very simple, but I can't seem to figure it out. I have
    two tables; one with live user data and another, identical except name, with
    archive data. I want to export data that has been flagged from table 1 and
    archive it by importing that data into table 2. I am able to modify the
    where clause of the export and get the proper data set, but cannot see a way
    (via OEM for Oracle 9.2.0.2) to change the name of the table to receive the
    import. I just end up shoving the same records back into table1. Is there
    an easy way to do this or am I just destined to polish up my script writing
    skills? Thanx!

    Yeah, you're right... however, I haven't had to write scripts since my old SQL/DS days on VM! I guess I've been lucky all these years.
    I guess the thing would go:
    1. Select from table1
    2. Insert into table2
    3. Delete from table1 after successful #2.
    I guess I'll get on it. Thanx!
    L

  • Excel issues with importing CSV or HTML table data from URL - Sharepoint? Office365?

    Greetings,
    We have a client who is having issues importing CSV or HTML table data as one would do using Excel's Web Query import from a reporting application.  As the error message provided by Excel is unhelpful I'm reaching out to anyone who can help us begin to
    troubleshoot problems affecting what is normal standard Excel functionality.  I'd attach the error screenshot, but I can't because my account is not verified....needless to say it says "Microsoft Excel cannot access  the file https://www.avantalytics.com/reporting_handler?func=wquery&format=csv&logid=XXXX&key=MD5
    Where XXXX is a number and MD5 is an md5 code.  The symptoms stated in the error message are:
    - the file name or path does not exist
    -The file is being used by another program
    -The workbook you are trying to save has the same name as a currently open workbook.
    None of these symptoms are the case, naturally. The user encountered this with Excel2010, she was then upgraded to Excel2013 and is still experiencing the same issue. The output of this URL in a browser (IE, Chrome, Firefox) is CSV data for the affected
    user, so it is not a network connectivity issue.  In our testing environment using both Excel2010 or 2013 this file is imported successfully, so we cannot replicate.  The main difference I can determine between our test environment and the end-user
    is they have a Sharepoint installation and appear to have Office365 as well.
    So,  my question might more appropriately be for Sharepoint or Office365 folks, but I can't be sure they're  a culprit.  Given this - does anyone have any knowledge of issues which might cause this with Sharepoint or Office365 integrated with
    Excel and/or have suggestions for getting more information from Excel or Windows other than this error message?  I've added the domain name as a trusted publisher in IE as I thought that might be the issue, but that hasn't solved anything.  As you
    can see its already https and there is no authentication or login - the md5 key is the authentication.  The certificate for the application endpoint is valid and registered via GoDaddy CA.
    I'm at a loss and would love some suggestions on things to check/try.
    Thanks  -Ross

    Hi Ross,
    >> In our testing environment using both Excel 2010 and 2013 this file is imported successfully, so we cannot replicate.
    I suspect it is caused by the difference of web server security settings.
    KB: Error message when you use Web query to a secure Web page (HTTPS://) in Excel: "Unable to open"
    Hope it will help.
    By the way, this forum is mainly for discussing questions about Office Development (VSTO, VBA and Apps for Office .etc.). For Office products feature specific questions, you could consider posting them on
    Office IT Pro forum or Microsoft Office Community.
    Regards,
    Jeffrey
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • An internal error occurred while writing imported graphics in this document. The file has been saved

    An internal error occurred while writing imported graphics in this document. The file has been saved, but has lost some image data. Please report this error to Adobe Technical Support.
    How do i fix this, there are no images in the document
    thanks
    emma

    We are running FM version 7.2b144 on MS Win xp Pro (32 bit), and I did not notice this until service pack 3 was installed. I believe I have found a work around to the situation and another contributing cause. If graphic files are placed directly in an anchored frame instead of importing by reference, the file somehow becomes misplaced. If you right click the graphic and open the Object Properties dialog box, and see the phrase "no referenced file" below Main Editor: Referenced File: in the lower left hand corner, this has happened. I found if I removed all graphics files without references and imported them by reference, the source file may then be properly saved. I am also using a program called CCleaner, which removes cookies, temp files, browsing history and the like from a system. If the program settings are chosen too aggressively, and the application runs when FM has a file open, this same error will occur, even if all files are referenced properly. I don't know if SP3 has some similar application which is now running in the background and causing this.
    To summarize, if you want to retain SP3, I have eliminated this error by confirming the links to referenced graphics files and avoiding using 3rd party "cleaners" while FM is open.

  • Import & Export of Internal table

    Hello All,
    In my requirement I need to call the MB5B program RM07MLBD. I used the code like this.
    SUBMIT rm07mlbd AND RETURN
                WITH matnr   IN  so_matnr
                WITH werks   IN  so_werks
                WITH datum   IN  so_budat.
    Now from the RM07MLBD program I need the get the values of the table * g_t_totals_flat * to my zprogram.
    Is it possible to import & export the Internal table from one program to other.
    Regards,
    Anil.

    Hi,
    You can export the internal table ot memory id and can access the (Import) in the called program.
    Consider this small code from ABAPDOCU.
    DATA text1(10) TYPE c VALUE 'Exporting'.
    DATA: itab TYPE TABLE OF sbook,
          wa_itab LIKE LINE OF itab.
    DO 5 TIMES.
      wa_itab-bookid = 100 + sy-index.
      APPEND wa_itab TO itab.
    ENDDO.
    EXPORT text1
           text2 = 'Literal'
      TO MEMORY ID 'text'.
    EXPORT itab
      TO MEMORY ID 'table'.
    Regards
    Bikas

  • Best way to import data to multiple tables in oracle d.b from sql server

    HI All am newbie to Oracle,
    What is the Best way to import data to multiple tables in Oracle Data base from sql server?
    1)linked server?
    2)ssis ?
    If possible share me the query to done this task using Linked server?
    Regards,
    KoteRavindra.

    check:
    http://www.mssqltips.com/sqlservertip/2011/export-sql-server-data-to-oracle-using-ssis/
          koteravindra     
    Handle:      koteravindra 
    Status Level:      Newbie
    Registered:      Jan 9, 2013
    Total Posts:      4
    Total Questions:      3 (3 unresolved)
    why so many unresolved questions? Remember to close your threads marking them as answered.

  • Not able to import the article with sidecar.xml

    Hi,
    With the new DPS version (ver. 18), we are not able to import the article with sidecar.xml. Could you please check and suggest the solution for the same.
    With Regards,
    Anil Yadav

    I read that your sidecar needs the author-value to be working.
    —Johannes
    (mobil gesendet)
    Am 30.01.2012 07:54 schrieb "Anil Yadav" <[email protected]>:
       not able to import the article with sidecar.xml  created by Anil Yadav<http://forums.adobe.com/people/Anil+Yadav>in
    Digital Publishing Suite - View the full discussion<http://forums.adobe.com/message/4173103#4173103>

  • Width Wrong for Imported Graphics in Frame 9

    Has anyone else had issues with Framemaker detecting the wrong width when importing graphics?  As an example, when I import a JPG of a button that should be 21 x 21 pixels, Framemaker displays the width as 24px and the height as 21px.  This results in a smashed graphic.  If I adjust the dimensions of the graphic in FrameMaker to the correct dimensions, then print the PDF, the right border of the image is off.
    I have tried capturing the graphic a variety of different ways, and I always experience the same results.  I can import the graphic into Captivate or Word and the sizing is correct.  Any ideas?  Thanks!
    I am using FrameMaker version 9.0p237 as part of the Technical Communication Suite 2.

    I just tested this with a sample file at the 21x21 dimensions, and you are absolutely correct. FM9 screws up the dimensions (and default dpi resolution) for PNG and GIF files. I also tried BMP and TIF equivalents and these were ok. FM8 does not have this problem, so it looks like Adobe played with the PNG and GIF filters a bit (perhaps to get rid of all of the extra colours coming in).
    For a JPG or PNG import of a 21x21 at 96dpi, FM9 seems to think that it is 24x21 at 110dpi. FM8 gets it right.
    For a GIF import of the same, FM9 thinks it is 22x21 at 75dpi. FM8 got it right.
    What's also strange is that if the dimensions are both even, e.g. 20x20 at 96dpi, then FM9 gets it right for the JPG, PNG and GIF. However, if the *first* dimension is odd, e.g. 21x20 it gets it wrong again as before, but if the second dimesion is odd, e.g. 20x21, the it gets it right. VERY WIERD!
    It's definitely a BUG.
    I would suggest that you either use BMP or TIF for now OR try to increase your icons by 1 pixel to make them an even size, e.g. 22x22.
    I'd also recommend that you not use JPG for these, but rather GIF or PNG, because you may generate some unwanted artifacts in the JPG due to the lossy compression used.

Maybe you are looking for

  • Playing Quicktime in Flash Player?

    I head that you can encode a Quicktime video as H.264 and change the extension from .mov to .flv and it will play in the Flash player. Is this true?

  • Can switching from CRT to LCD monitors cause system problems?

    My 9.1 locks up periodically (but the cursor still moves) since I replaced two 20" CRT monitors with two Samsung 19" LCD monitors. Could this affect the performance of my machine? I've tried everything else to address the freeze problem but recall th

  • Problem with Connection Object

    I have created a java application. The main function is in MainFrame.java. I have created a connection object myConnection. This I did from the GUI dialog. Later while creating application module i used this connection. While running the application,

  • LDAP Intigration with Oracle BPM 10.3.0.0.0

    Hi, I want to know about integration with LDAP connectivity with Oracle BPM suite. We don't have any knowledge between the integration on Oracle BPM suit & LDAP. Please do the needful on the same as soon as possible. With Best Regards, Ratna Prasad.

  • Error while process flow execution

    Hi , I am getting the below error while runing a process flow. I have owb11gr2  PKG_RUN_MAPPING_WITH_LOG:P_RUN_OWB_MAPPING_1 Error ORA-01403: no data found ORA-06512: at "OWBSYS.WB_RT_API_EXEC", line 149 ORA-01403: no data found ORA-06512: at "OWBSYS