Converting DITA files to Structured FrameMaker

Hello,
I have DITA files need conversion to structured FrameMaker files. I tried generating conversion table with DITA files and defined elements (of structured FrameMaker that I have) against each element in the table. But this is not working.
Is there any other way to accomplish this task?

To add to Scott's reply, make sure when you open your DITA file in Frame, make sure that you are in the Structured interface (Edit > Preferences > General > Product Interface = Structured FrameMaker). If you are not in the Structured interface, FrameMaker will turn your document into an unstructured document - probably not what you want.
Marsha

Similar Messages

  • Strange error when using RH11 to convert .dita files to .html

    I am trying to use RH11 to convert a bunch of .dita files to .html, but so far have had no success.  I have DitaOT installed in my program folders.
    I've been opening robohelp, selecting new project -> import -> ditamap file.  select the ditamap to use, create a new folder for the project, hit next.
    In the replace default XSLT file for conversion field, I put in the dita2html-base.xsl file.
    In the DITA Open Toolkit home directory field, I navigate to the location of the DitaOT root folder, select it, and click finish.
    When I click, finish, robohelp almost immediately gives me an error message saying "No error occurred", leading me to believe that I filled out all of the required fields correctly, but when I check the output folder I created, it is empty.
    Any tips on things to try/ what I should change would be very appreciated (or if i'm trying to force RH to do something that it isn't normally able to do, that would be appreciated as well).

    Can anyone show me how to do the translation extraction in this OAF version?

  • Can anyone suggest what tools are available to translate Framemaker 11 dita files? Thanks!

    Can anyone suggest what tools are available to translate Framemaker 11 dita files into other languages? Thanks

    "FrameMaker 11 dita" files are no different than DITA XML files, so you can use any translation tool which can handle that format: SDL Trados Studio, Swordfish, ....
    TIP: Make sure you translate the DITA XML files, NOT the binary .fm files!
    Cheers
    Yves Barbion
    www.scripto.nu

  • Reloading DITA file with xref gives UNDEFINED CROSS-REF FORMAT! in FM8

    Hi,
    I'm using structured FrameMaker to author DITA files that are to be converted into .chm and pdf. I'm using fm-xref for hyperlinks to preserve the linking in the pdf output. However, I don't want to use the pre-defined cross reference formats (e.g. Figure, See_Title_and_Page) and so I defined my own (simply using the <paratext> building block).
    However, when I reload the document, my new format is lost and it results in an UNDEFINED CROSS-REF FORMAT! message in place of my cross-reference. I've also tried changing an existing format but it reverts back to the original when I reload the document.
    Is there somewhere that I can change the default cross-reference formats permanently?
    Grateful for help.
    Thanks,
    Ian

    Hi Ian...
    You need to add the new cross-ref formats into the template(s) in order for them to be available in your documents.
    ...scott

  • Generating HTML from Structured FrameMaker 9

    Hi,
    My source files are in Structured FrameMaker 9. I need to generate the output in HTML format. Is there a method to do this? Can someone guide me through the process of generating an HTML output?
    Regards,
    Manish

    Hi Manish,
    You have a number of options. I'll briefly summarize a few, but all of them involve some measure of complexity so I wouldn't be able to "guide you through" any of them.
    - Use a third-party product specifically designed for this, such as Omni Systems' Mif2Go, Quadralay ePublisher, or Adobe Robohelp. If you buy the Adobe TechComm Suite, Robohelp is included. All of these products can convert any FrameMaker document to HTML, with varying levels of additional functionality related to the subsequent generation of common online help formats with that HTML.
    - Save your structured files to XML and then use XSLT as a post-process on that XML. This is the more complex option, but if you have the skills, it may be more attractive since you may not have to buy anything and you'll be able to easily customize the process however you want it.
    - Use the DITA structure definitions within FrameMaker, then use the DITA Open Toolkit as a post-process to generate HTML from the DITA XML. There is lots of complexity with this as well, but it has some attractiveness as the DITA structured applications and open toolkit are effectively off-the-shelf software. Additionally, everything is free, unless you want to enhance your DITA experience with a third-party addon like DITA FMx from Leximation (recommended).
    - Use XHTML as your structure definition within FrameMaker, then save as XML. You'll automatically have HTML when you save your files. FrameMaker includes a structure application for XHTML but I've never used it, so I don't know how well it works. With this option, you would have a more WYSIWYG conveniences while authoring but less control over variations in the HTML output.
    There may be more and there certainly are any myriad of combinations of these techiniques. Hopefully this will help get you started. If you did buy the TechComm Suite, consider RoboHelp as a starting point since you already paid for it. The third-party product route is the most expensive in terms of software purchasing, but it is usually the least complex.
    One additional note - You will see "Save As HTML" or similar somewhere in the FM menus. It is a very rudimentary feature that is not likely to serve your needs. Might be worth a try since it is already there, but don't get your hopes up on that one.
    Good luck,
    Russ

  • Convert text file to table on Import

    We have a lot of tables, that we'd like to maintain outside of FrameMaker (we're using FM9).  I've been trying to figure out the best way to do it, and using the Import>File>Convert option seems like the best.
    However, my question is what is best practice for the type of files we use?  At first it seemed like using Excel and saving as a .csv or tab-delimited text file would be easiest.  But there doesn't seem to be a .csv convert option and setting "," as the delimiter means we can't use commas inside the cell content.  And it seems to import tab-delimited cells that contain a comma inside quotes.
    It seems like the other option would be to use HTML for the table content.  We are new to all this stuff, so using HTML would add to the learning curve, but I can push it through if it's best practice/will make the cleanest conversions.  Or is there a way to use Excel that converts cleanly that I just haven't figured out?
    Any thoughts would be appreciated!

    Last year, based upon a comment on this forum, I imported an Excel table into a structured FrameMaker document by copy. FrameMaker created the table and applied its own version of a structure. For example, row elements were named ROW, cell elements were named CELL, etc. Because my table structure used different names, I had to change them to make the structure valid. There may have been some subtle issues with the table element itself. It was not clean but it got the job done.
    Regarding Michael's suggestion  about XML, I DID try this once, and it worked fine. The exported XML from Excel was simple and clean. The XSLT was therefore easy to write. If you have lots of tables to do, this might be the best way to go. It may take some work to get it working correctly, but once it is, subsequent work will be minimized.
    Regarding XML from Excel, I was using the old Excel format xls. I have not worked with the newer xlsx format, which IS based upon XML. If you are using xlsx, I would be sure to export as XML and not "save" as XML (not sure what the command would be) in order to avoid getting all the XML used in newer Excel to store formatting and other meta information.
    Good luck.

  • Broken links when PDF'ing from Structured Framemaker 8.0 in Windows XP

    We have a large number of links in our documents that are created using structured Framemaker 8.0 in a Windows XP environment. The xrefs work fine in FM, but once they have been PDF'd all of the links are broken. Since these are large documents, it can take over a day to relink everything.  All links are created using the fm-xref tag and link to other topics/items within the FM book.
    Any suggestions for what may be the problem?
    I am also posting this in the Framemaker forum.

    The Set Destination option isn't working for us either.
    This is what we are seeing:
    In our source doc, a cross-reference is created using the fm-xref structured tag. At that point the cross-reference works. We create a series of topics using cross-references the same way.
    These topics are assembled into ditamaps.  The cross-references are still working.
    A book is then created and all ditamaps are created as chapters within the book.
    At this point, the fm-xrefs stop working. In some cases, they were converted to xrefs instead of retaining the fm-xref tag. At this point, some of the formatting is ignored.  For example, an example tag that looks lovely in the left column, suddenly becomes a Heading 1 which is a chapter heading.
    Needless to say, the frustration level is very high.  I would attach, but it appears that .fm or book files are not an acceptable file type.
    Please help us. It may be something terribly simple, that we just can't see anymore because we're cross-eyed from troubleshooting.
    We love FM and would like to continue to use it, but not if it causes this type of frustration. In fact, we're considering becoming nurses.

  • Preserving Chapter Cross References when going to Structured Framemaker

    Hello,
    I am trying to preserve all of my cross references that link from chapter to chapter, within the same book. If I convert files one at a time, then FrameMaker has trouble finding the link in the destination chapter - because that chapter has not yet been converted to Structured FrameMaker.
    I have not tried Batch Processing, but I am sure I would get the same results.
    With that said, what must I do to these external chapter cross references, so that they convert over to Structured FrameMaker?
    Thanks in advance for your response.
    Regards,
    Jim

    Jim,
    Like Russ, I have had to redirect the cross-references manually following conversion; HOWEVER, I have also noticed that existing IDs in the unstructured version seem to get put into the converted element as an attribute. In other words, if my EDD defines a Title element with an Id attribute and the unstructured document contains a title paragraph that is the target of a cross-reference, then upon conversion the corresponding Title element has TWO attributes, one is named Id and the other ID. Id has no value, but ID does. The structured document does not validate and I have to delete the ID attribute to make it validate.
    This leads me to believe that had I named the attribute ID in my EDD, then it would be assigned a value upon conversion; however, I have never tried this. If I had, FrameMaker would likely create the Title element with two attributes, both named ID!!!
    Take it for what it is worth,
    Van

  • How to convert unstructured document into structured document

    I have many unstructured documents. Is it possible to convert these documents into strcutured documents? I know that structured FM uses DITA which is different from unstrcutured document. This is client's requirement so I want to get community views on this.

    Yanesh,
    I would approach this in 2 stages.
    Understand how DITA works independently of FrameMaker first. I say this because DITA is not a straight forward 'out of the box' experience. This could be a good starting point -http://www.technicalcommunicationcenter.com/2011/04/13/technical-book-review-practical-dit a-a-nuts-and-bolts-guide-to-structured-technical-writing/
    Understand how FrameMaker works with DITA. FrameMaker has it's own way of how you author DITA based content. You might want to look at tools such as DITA FMx - http://www.leximation.com/dita-fmx/, which claims to make DITA authoring easier with FrameMaker.
    If you are initially just producing PDF from your DITA content, then FrameMaker is probably the best way of getting the results you want, as FrameMaker templates work the same with structured content, as they do with unstructured.
    Good luck
    Mark

  • Is there any danger in opening an unstructured document in structured Framemaker?

    I know that it's not a good idea to open a structured FrameMaker file in the unstructured FrameMaker interface, and that there's a warning about this when you try.
    What's come up for us however is whether there's any problem with people using the Structured FrameMaker interface to edit unstructured files.
    We have a machine set up for people who are not expert or highly skilled with FrameMaker, and since we have both structured and unstructured documents, the question is whether to leave it set as the structured interface, or the unstructured interface. They're just making small content edits in most cases, for anything more involved they ask me.
    So:
    If it's set to unstructured:
    If they open an unstructured document, all is well.
    If they try to open a structured document, they will see the warning. I can tell them what to do if they see it. (This might mean telling them to change to structured, or just to give me that file to edit instead.)
    If it's set to structured:
    If they open a structured document, no problem.
    If they open an unstructured document however -- is there any danger if they edit it that way? Will saving from structured FrameMaker change anything about the file?
    In the latter case, opening unstructured in structured Frame, there's no warning, it just opens with a blank structure view window, if they even open that window.
    I have to imagine that Adobe separated the two interfaces for a reason, but possibly it has more to do with just not needing all of the resources like XML and DITA menus when you're in unstructured.
    I realize that the real answer is not to let people unskilled with FrameMaker use it to edit documents, but this is the way things are for the moment. If it's set to unstructured, they'll have to switch over in order to edit structured files, and then be sure to remember to switch back. Leaving it set as structured in some ways seems the best choice, but only if it won't damage unstructured files that way.
    Thanks

    timezoned wrote:
    I know that it's not a good idea to open a structured FrameMaker file in the unstructured FrameMaker interface, and that there's a warning about this when you try.
    What's come up for us however is whether there's any problem with people using the Structured FrameMaker interface to edit unstructured files.
    We have a machine set up for people who are not expert or highly skilled with FrameMaker, and since we have both structured and unstructured documents, the question is whether to leave it set as the structured interface, or the unstructured interface. They're just making small content edits in most cases, for anything more involved they ask me.
    So:
    If it's set to unstructured:
    If they open an unstructured document, all is well.
    If they try to open a structured document, they will see the warning. I can tell them what to do if they see it. (This might mean telling them to change to structured, or just to give me that file to edit instead.)
    If it's set to structured:
    If they open a structured document, no problem.
    If they open an unstructured document however -- is there any danger if they edit it that way? Will saving from structured FrameMaker change anything about the file?
    In the latter case, opening unstructured in structured Frame, there's no warning, it just opens with a blank structure view window, if they even open that window.
    I have to imagine that Adobe separated the two interfaces for a reason, but possibly it has more to do with just not needing all of the resources like XML and DITA menus when you're in unstructured.
    I realize that the real answer is not to let people unskilled with FrameMaker use it to edit documents, but this is the way things are for the moment. If it's set to unstructured, they'll have to switch over in order to edit structured files, and then be sure to remember to switch back. Leaving it set as structured in some ways seems the best choice, but only if it won't damage unstructured files that way.
    Thanks
    As Matt notes, the extra structured stuff in the interface may be confusing to users familiar with unstructured FM. However, it will also be confusing when unstructured FM users try to find and use the paragraph and character catalogs, and some other unstructured features that are perfectly usable in structured FM, but are not immediately visible in the structured interface.
    One way to improve and simplify the FM environment for users who are able to edit text, but shouldn't be manipulating other tools, is to customize the interface. Search Google for terms like "customizing framemaker" without quotes. Recent FM releases feature the ExtendScript ToolKit, which offers new ways to customize FM, in addition to those in the older methods of modifying the maker.ini and configui files. One option if you follow this path would be to create custom Windows icons that call startup scripts which then call FM. Before the script launches FM, it can copy specified configuration and ini files into the user's environment, so that when FM starts up, it's got just what you design it to have. A simple approach here would be customize unstructured FM's interface to have only the minimum set of menu items and other things you specify, and launch unstructured FM. An icon could be named for the user, like SallyJonesFM, or for the task, like FMUnStrEditing.
    I'm sure some folks on the forum have taken an approach like this for their users, and can offer some advice from their vast experience.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Error occurred while converting the file ".." An unknown error occurred -50

    I've had a few tracks which seem to skip on my ipod but play perfectly fine on itunes.
    As a result, I've been converting these tracks to ACC files; this has worked for a few files but for one particular album i get the following:
    +error occurred while converting the file ".." An unknown error occurred -50+
    I've tried renaming the files, I re-created my playlist but nothing works.
    Thanks in advance.

    *Skipping songs*
    The iPod seems to fail to play all of the occasional track that iTunes, and indeed other PMPs, are happy to play. There is probably some minor technical error in the internal structure of the file which is normally ignored by other playback software but causes the Classic to bail out.
    You may like to try scanning the files with MP3 Validator which can find & fix some internal MP3 errors.
    Some users have also suggested that completely removing all id3 tags and then replacing the information can be a solution. This can be achieved in iTunes by selecting an affected track, right/option clicking and using the option Convert id3 tags > None. Since some files may mistakenly have more than one tag you may need to repeat this action. Once you have confirmed that no tag is present you can replace the tag information using Convert id3 tags > V2.3 (I believe it is recommended to avoid using V2.4).
    Personally I have found files for which these solutions don't work. In this case the workaround is either to re-rip the tracks or get iTunes to re-encode the file, e.g. convert AAC to MP3 or vice versa and sync the newly encoded file to the iPod instead. Because transcoding will cause a loss of fidelity you should keep your original file so that if a future iPod firmware resolves this issue you can put your original files back onto the iPod.
    tt2

  • Converting XML file to DTD or XSD file

    Hi everyone,
    We're currently doing an IDOC to File. The file should be in XML format. Right now, we have a sample XML file. We need to convert the file to DTD or XSD and then upload this in XI to be able to get it structure. We've tried different conversion tools to do this, however, the converted DTD/XSD file still has errors when we load it to XI. What we're thinking is to create a data type to achieve this. These are some of the fields in the file.
    <messageHeader creationDate>
    <catellae:gTTSDataDelivery creationDate="X" (...)>
    */<catellae:(…)>/<txnId>
    */<catellae:(…)>/<items>/<item>/<quantity>
    */<catellae:(…)>/<items>/<item>/<unitOfMea>
    */<catellae:(…)>/<items>/<item>/<prodDesc>/<matType>
    */<catellae:(…)>/<shipToAddress>/<nameAndAddress>/<city>
    */<catellae:(…)>/<shipToAddress>/<contactInformation>/<communicationChannel (…)
    It seems that there are more than 3 nodes. And in XI, only three nodes are allowed. Could you tell us how should we create the data type for this? Thanks in advance!

    Hi Mariel,
              Refer to the below link for conversion of XML to Xsd using Altova XML Spy.
    Re: data type for xml file
    For altova free trial Download:
    http://www.altova.com/download.html
    Please let me know if u need furthur information.
    Thanks,
    Bhargav.
    Note:Award points if found useful

  • Convert XML file to sap

    Dear friends
                  For converting XML file to SAP, I used TEXT_CONVERT_XML_TO_SAP function module. In this I have some doubt. Pls clarify this.
    1. I am getting run time error with type h.
    2  I_FIELD_SEPERATOR          = ';'
       I_LINE_HEADER              =
       I_TAB_RAW_DATA             =
       I_FILENAME                 =
       I_TOTALSIZE                =
    for the above parameter what are the value has to passed.
    Thanks.

    Hi,
    Take a look in this code:
    *& Report  z_xit_xml_check
      REPORT  z_xit_xml_check.
      TYPE-POOLS: ixml.
      DATA: BEGIN OF t_cabec OCCURS 0.
              INCLUDE STRUCTURE zmmt2010.
      DATA END OF t_cabec.
      DATA: BEGIN OF t_item OCCURS 0.
              INCLUDE STRUCTURE zmmt2011.
      DATA END OF t_item.
      DATA: BEGIN OF t_itemt OCCURS 0.
              INCLUDE STRUCTURE zmmt2012.
      DATA END OF t_itemt.
      TYPES: BEGIN OF t_xml_line,
              data(256) TYPE x,
            END OF t_xml_line.
      DATA check_item(1).
      DATA check_itemt(1).
      DATA: l_ixml            TYPE REF TO if_ixml,
            l_streamfactory   TYPE REF TO if_ixml_stream_factory,
            l_parser          TYPE REF TO if_ixml_parser,
            l_istream         TYPE REF TO if_ixml_istream,
            l_document        TYPE REF TO if_ixml_document,
            l_node            TYPE REF TO if_ixml_node,
            l_xmldata         TYPE string.
      DATA: l_elem            TYPE REF TO if_ixml_element,
            l_root_node       TYPE REF TO if_ixml_node,
            l_next_node       TYPE REF TO if_ixml_node,
            l_name            TYPE string,
            l_iterator        TYPE REF TO if_ixml_node_iterator.
      DATA: l_xml_table       TYPE TABLE OF t_xml_line,
            l_xml_line        TYPE t_xml_line,
            l_xml_table_size  TYPE i.
      DATA: l_filename        TYPE string.
      PARAMETERS: pa_file TYPE char1024 DEFAULT 'c:\xml.xml'.
      START-OF-SELECTION.
        PERFORM busca_xml.
        PERFORM carrega_tabela.
    *&      Form  get_xml_table
      FORM get_xml_table CHANGING l_xml_table_size TYPE i
                                  l_xml_table      TYPE STANDARD TABLE.
      Local variable declaration
        DATA: l_len      TYPE i,
              l_len2     TYPE i,
              l_tab      TYPE tsfixml,
              l_content  TYPE string,
              l_str1     TYPE string,
              c_conv     TYPE REF TO cl_abap_conv_in_ce,
              l_itab     TYPE TABLE OF string.
        l_filename = pa_file.
      upload a file from the client's workstation
        CALL METHOD cl_gui_frontend_services=>gui_upload
          EXPORTING
            filename   = l_filename
            filetype   = 'BIN'
          IMPORTING
            filelength = l_xml_table_size
          CHANGING
            data_tab   = l_xml_table
          EXCEPTIONS
            OTHERS     = 19.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDFORM.                    "get_xml_table
    *&      Form  process_dom
      FORM process_dom USING document TYPE REF TO if_ixml_document.
        DATA: node      TYPE REF TO if_ixml_node,
              iterator  TYPE REF TO if_ixml_node_iterator,
              nodemap   TYPE REF TO if_ixml_named_node_map,
              attr      TYPE REF TO if_ixml_node,
              name      TYPE string,
              prefix    TYPE string,
              value     TYPE string,
              indent    TYPE i,
              count     TYPE i,
              index     TYPE i.
        DATA v_codcat TYPE zmmt2011-codcat.
        DATA v_master_for TYPE zmmt2011-master_for.
        node ?= document.
        CHECK NOT node IS INITIAL.
        IF node IS INITIAL. EXIT. ENDIF.
      create a node iterator
        iterator  = node->create_iterator( ).
      get current node
        node = iterator->get_next( ).
      loop over all nodes
        WHILE NOT node IS INITIAL.
          indent = node->get_height( ) * 2.
          indent = indent + 20.
          CASE node->get_type( ).
            WHEN if_ixml_node=>co_node_element.
            element node
              name    = node->get_name( ).
              TRANSLATE name TO LOWER CASE.
              IF name = 'iten'.
                MOVE 'I' TO check_item.
              ENDIF.
              IF name = 'cabec'.
                MOVE 'C' TO check_item.
              ENDIF.
              IF name = 'iten_texto'.
                MOVE 'T' TO check_item.
              ENDIF.
              nodemap = node->get_attributes( ).
              IF NOT nodemap IS INITIAL.
              attributes
                count = nodemap->get_length( ).
                DO count TIMES.
                  index  = sy-index - 1.
                  attr   = nodemap->get_item( index ).
                  name   = attr->get_name( ).
                  prefix = attr->get_namespace_prefix( ).
                  value  = attr->get_value( ).
                ENDDO.
              ENDIF.
            WHEN if_ixml_node=>co_node_text OR
                 if_ixml_node=>co_node_cdata_section.
            text node
              value  = node->get_value( ).
              IF check_item = 'C'.
                TRANSLATE name TO LOWER CASE.
                CASE name.
                  WHEN 'lifnr'.     MOVE value TO t_cabec-lifnr.
                  WHEN 'codcat'.
                    MOVE value TO t_cabec-codcat.
                    MOVE value TO v_codcat.
                  WHEN 'bukrs'.     MOVE value TO t_cabec-bukrs.
                  WHEN 'zterm'.     MOVE value TO t_cabec-zterm.
                  WHEN 'waers'.     MOVE value TO t_cabec-waers.
                  WHEN 'inco1'.     MOVE value TO t_cabec-inco1.
                  WHEN 'inco2'.     MOVE value TO t_cabec-inco2.
                  WHEN 'telf1'.     MOVE value TO t_cabec-telf1.
                  WHEN 'verkf'.     MOVE value TO t_cabec-verkf.
                  WHEN 'datav'.
                    MOVE value TO t_cabec-datav.
                    APPEND t_cabec.
                ENDCASE.
              ENDIF.
              IF check_item = 'I'.
                TRANSLATE name TO LOWER CASE.
                CASE name.
                  WHEN 'master_for'.
                    MOVE value TO t_item-master_for.
                    MOVE value TO v_master_for.
                  WHEN 'werks'.      MOVE value TO t_item-werks.
                  WHEN 'versao'.     MOVE value TO t_item-versao.
                  WHEN 'matkl'.      MOVE value TO t_item-matkl.
                  WHEN 'j_1bindus3'. MOVE value TO t_item-j_1bindus3.
                  WHEN 'j_1bmatuse'. MOVE value TO t_item-j_1bmatuse.
                  WHEN 'j_1bmatorg'. MOVE value TO t_item-j_1bmatorg.
                  WHEN 'j_1bnbmco1'. MOVE value TO t_item-j_1bnbmco1.
                  WHEN 'bsgru'.      MOVE value TO t_item-bsgru.
                  WHEN 'ekgrp'.      MOVE value TO t_item-ekgrp.
                  WHEN 'txz01'.      MOVE value TO t_item-txz01.
                  WHEN 'epstp'.      MOVE value TO t_item-epstp.
                  WHEN 'netpr'.      MOVE value TO t_item-netpr.
                  WHEN 'peinh'.      MOVE value TO t_item-peinh.
                  WHEN 'meins'.      MOVE value TO t_item-meins.
                  WHEN 'plifz'.      MOVE value TO t_item-plifz.
                  WHEN 'mwskz'.      MOVE value TO t_item-mwskz.
                  WHEN 'steuc'.
                    MOVE value TO t_item-steuc.
                    MOVE v_codcat TO t_item-codcat.
                    APPEND t_item.
                ENDCASE.
              ENDIF.
              IF check_item = 'T'.
                TRANSLATE name TO LOWER CASE.
                CASE name.
                  WHEN 'linha'.     MOVE value TO t_itemt-linha.
                  WHEN 'txlng'.     MOVE value TO t_itemt-txlng.
                    MOVE v_master_for TO t_itemt-master_for.
                    MOVE v_codcat     TO t_itemt-codcat.
                    append t_itemt.
                ENDCASE.
              ENDIF.
          ENDCASE.
        advance to next node
          node = iterator->get_next( ).
        ENDWHILE.
      ENDFORM.                    "process_dom
    *&      Form  Busca_XML
          text
    -->  p1        text
    <--  p2        text
      FORM busca_xml .
        DATA: lc_mess(70) TYPE c,lv_tab.
        TYPES: BEGIN OF ty_zvmsgorgtr.
                INCLUDE STRUCTURE zmmt2011.
        TYPES   END OF ty_zvmsgorgtr.
      Creating the main iXML factory
        l_ixml = cl_ixml=>create( ).
      Creating a stream factory
        l_streamfactory = l_ixml->create_stream_factory( ).
        PERFORM get_xml_table CHANGING l_xml_table_size l_xml_table.
      wrap the table containing the file into a stream
        l_istream = l_streamfactory->create_istream_itable( table =
        l_xml_table size  = l_xml_table_size ).
      Creating a document
        l_document = l_ixml->create_document( ).
      Create a Parser
        l_parser = l_ixml->create_parser( stream_factory = l_streamfactory
                                          istream        = l_istream
                                          document       = l_document ).
      Parse the stream
        IF l_parser->parse( ) NE 0.
          IF l_parser->num_errors( ) NE 0.
            DATA: parseerror TYPE REF TO if_ixml_parse_error,
                  str        TYPE string,
                  i          TYPE i,
                  count      TYPE i,
                  index      TYPE i.
            count = l_parser->num_errors( ).
            WRITE: count, ' parse errors have occured:'.
            index = 0.
            WHILE index < count.
              parseerror = l_parser->get_error( index = index ).
              i = parseerror->get_line( ).
              WRITE: 'line: ', i.
              i = parseerror->get_column( ).
              WRITE: 'column: ', i.
              str = parseerror->get_reason( ).
              WRITE: str.
              index = index + 1.
            ENDWHILE.
          ENDIF.
        ENDIF.
      ENDFORM.                    " Busca_XML
    *&      Form  Carrega_Tabela
          text
    -->  p1        text
    <--  p2        text
      FORM carrega_tabela .
      Process the document
        IF l_parser->is_dom_generating( ) EQ 'X'.
          PERFORM process_dom USING l_document.
        ENDIF.
      ENDFORM.                    " Carrega_Tabela

  • How can I get XML cross-references to translate to Structured FrameMaker?

    I've been using Structured FrameMaker from the beginning, and have designed many EDDs, and about 10 years ago I did some translation of SGML into Structured FrameMaker (7.2) which worked well.
    Now, (with FrameMaker 10), I've had to design an EDD to translate XML documents into Structured FrameMaker.
    In my EDD I've a CrossReference element called XRef; this has an attribute of ID, which in turn has a value of IDReference and has Special AttributeConrols of ReadOnly.
    My target elements in the EDD all have an ID attribute with a value of UniqueID.
    My XML document's target xref element has  an attribute of linkend, and in XML this works as I'd expect.
    When I pass the XML file through the EDD/Template, everything works except that I get an ID = no value, which, of course, results in no display of the cross-reference data in the document.
    Oddly, in structured FrameMaker, my element of link, with an attribute of linkend, works as it should, and displays the data.  It may not be important, but the value for linkend is IDReference not UniqueID, and this displays correctly (I changed this attribute's value to Unique ID in my EDD and it made no difference to the XRef value in my document).
    After making all these EDD changes, I've been careful to save the changes, import them to all files in my book and finally update the book.   Everything hangs together - except, of course, that the cross-reference doesn't work.
    I'd sincerely appreciate any help or advice other users might have because I'm quite frankly stumped.

    Russ,
    Sorry about the delay in replying; got sidetracked trying to fix some FrameMaker 10 problems; on occasion, it laughs and crashes if we copy an element in a document and paste it to somewhere illegal.  This doesn't happen all the time, but it might be something someone might do, so it was interesting to know.
    Anyway, back to cross-references.
    In our r/w rules we have:
    "linkend" is fm attribute "ID";
    Can we also have a similar line under the cross-reference element as:
    element "xref"
         is fm cross-reference element "XRef";
         attribute "linkend" is fm property cross-reference id;
         attribute "role" is fm property cross-reference format;
    At the moment the second line is:
    .....attribute ID is fm property cross-reference id;
    I tried adding the attribute "linkend" is fm property cross-reference id; (so that I had both linkend and ID) bit but this made no difference.
    In general use cross-references work, in that it picks up data in one place in the document, e.g. WorldWideWeb, and repeats it elsewhere.   So in our xml file we have a link element with an attribute linkend which, when it's processed (ignoring the handshake code used to link the two - which could be something vague like 12345vvdog), repeats whatever is the target.
    Conversely, for a cross-reference, in xml they use an xref element which also has a linkend attribute (similar mysterious secret handshake behind the scenes) which is deemed to point to a list of references.   This looks like it might be the stumbling block in that it links to an area in the xml document which is used as an internally generated list of references.  Apparently this is only built when the xml book equivelent is finalised, so is not, like the link and linkend coupling described above.
    I've passed this back to the xml people, and they are investigating a different way of preparing their cross-reference to a list of references (I'm now thoroughly confused with all these references - good thing the weekend's just around the corner).
    I appreciate all you help and advice, I'll admit that this is a lot more difficult to understand than straight-forward EDD element creation along with their respective attributes.   Life used to be so much more simple back then!
    In sum, what I thought I was doing was allowing an ID attribute with a value of IDReference in my elements, this was deemed to allow for FrameMaker cross-referencing.   In Structured FrameMaker, on its own, this works just fine; it all fell flat on its face when trying to import xml.   I tried to see whether the xref element's ID attribute could also be a UniqueID, but as just about everyone has said, this is a silly idea.   I was just trying stuff to see whether it might make a difference - you'll not be surprised to see that it didn't!
    For the moment, I have attributes called ID with a value of IDReference, and I understand you're all suggesting to leave it at that.
    If I understand correctly, I could eventually use an IDRef attribute if I wanted a UniqueID value to be used, though I'm not sure what a UniqueID is used or useful for, so will file that for future use.
    Again, thanks for the advice and help.
    Chris

  • ERROR in configuration:more elements in file csv structure than filed names

    <p ct="TextView" class="urTxtStd" style="white-space:nowrap;">Hello,<br>we have problem with file content conversion on file (FTP) sender<br>adapter when reading flat delimited file.<br><br>Error:<br>Conversion of file content to XML failed at position 0:<br>java.lang.Exception: ERROR converting document line no. 2 according to<br>structure 'P':java.lang.Exception: ERROR in configuration: more<br>elements in file csv structure than field names specified!<br><br>Details:<br>We have windows machine and line in a file is ended with CRLF.<br>We have PI 7.0 SP10, and following pathches:<br>SAPXIAF10P_3-10003482<br>SAPXIAFC10P_4-10003481<br><br><br>Adapter Type: File<br>Sender<br>Transport Protocol: File Transfer Protocol (FTP)<br>Message Protocol: File Content Conversion<br>Adapter Engine: Integration Server<br><br>FTP Connection Parameters<br>Transfer Mode: Binary<br><br>Processing Parameters<br>File Type: Binary<br><br>Channel: IN_XXXXX_FILE_WHSCON<br><br>Input File: (WZ00008.DAT)<br>N|0025013638||0000900379|0000153226|2007-07-24|2007-07-24||||<br>P|000030|2792PL1|2303061|1|KRT|||||<br><br>Content Conversion Prameters:<br>Recordset Structure: N,1,P,<br>Recordset Sequence: Ascending<br><br>Key Field Name: KF<br>Key Field Type: String<br><br>N.fieldNames: N1,N2,N3,N4,N5,N6,N7,N8,N9,N10<br>N.fieldSeparator: |<br>N.endSeparator: 'nl'<br>N.processFieldNames: fromConfiguration<br>N.keyFieldValue: N<br><br>P.fieldNames: P1,P2,P3,P4,P5,P6,P7,P8,P9,P10<br>P.fieldSeparator: |<br>P.endSeparator: 'nl'<br>P.processFieldNames: fromConfiguration<br>P.keyFieldValue: P<br><br><br>At the same time we have another channel very similar to this on which<br>works:<br><br>Channel: IN_XXXXX_FILE<br><br>Input File: (PZ000015.DAT)<br>N|2005-11-25|13:01||<br>P|0570001988|2005|305|6797PL1|2511091|3500|SZT|2005-11-<br>25|1200|G002|1240|G002|||<br><br><br>Content Conversion Prameters:<br>Recordset Structure: N,1,P,<br>Recordset Sequence: Ascending<br><br>Key Field Name: KF<br>Key Field Type: String<br><br>N.fieldNames: N1,N2,N3,N4<br>N.fieldSeparator: |<br>N.endSeparator: 'nl'<br>N.processFieldNames: fromConfiguration<br>N.keyFieldValue: N<br><br>P.fieldNames: P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15<br>P.fieldSeparator: |<br>P.endSeparator: 'nl'<br>P.processFieldNames: fromConfiguration<br>P.keyFieldValue: P<br><br>Converted file:<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;ns:PZ_MT xmlns:ns=&quot;<a href="http://xxxxx.yyyyy.hr">" target="_blank" title="Open this link in a new window">http://xxxxx.yyyyy.hr"></a><br>&lt;PZ&gt;<br>     &lt;N&gt;<br>          &lt;N1&gt;N&lt;/N1&gt;<br>          &lt;N2&gt;2005-11-25&lt;/N2&gt;<br>          &lt;N3&gt;13:01&lt;/N3&gt;<br>          &lt;N4&gt;&lt;/N4&gt;<br>     &lt;/N&gt;<br>     &lt;P&gt;<br>          &lt;P1&gt;P&lt;/P1&gt;<br>          &lt;P2&gt;0570001988&lt;/P2&gt;<br>          &lt;P3&gt;2005&lt;/P3&gt;<br>          &lt;P4&gt;305&lt;/P4&gt;<br>          &lt;P5&gt;6797PL1&lt;/P5&gt;<br>          &lt;P6&gt;2511091&lt;/P6&gt;<br>          &lt;P7&gt;3500&lt;/P7&gt;<br>          &lt;P8&gt;SZT&lt;/P8&gt;<br>          &lt;P9&gt;2005-11-25&lt;/P9&gt;<br>          &lt;P10&gt;1200&lt;/P10&gt;<br>          &lt;P11&gt;G002&lt;/P11&gt;<br>          &lt;P12&gt;1240&lt;/P12&gt;<br>          &lt;P13&gt;G002&lt;/P13&gt;<br>          &lt;P14&gt;&lt;/P14&gt;<br>          &lt;P15&gt;&lt;/P15&gt;<br>     &lt;/P&gt;<br>&lt;/PZ&gt;<br>&lt;/ns:PZ_MT&gt;<br><br>And, if we remove last delimiter before CRLF in WZ00008.DAT file then<br>file works, but we dont't have fields N10 and P10 in a XML converted<br>file.<br><br>Converted file:<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;ns:WZ_MT xmlns:ns=&quot;<a href="http://xxxxx.yyyyy.hr">" target="_blank" title="Open this link in a new window">http://xxxxx.yyyyy.hr"></a><br>&lt;WZ&gt;<br>     &lt;N&gt;<br>          &lt;N1&gt;N&lt;/N1&gt;<br>          &lt;N2&gt;0025013639&lt;/N2&gt;<br>          &lt;N3&gt;&lt;/N3&gt;<br>          &lt;N4&gt;0000900379&lt;/N4&gt;<br>          &lt;N5&gt;0000153226&lt;/N5&gt;<br>          &lt;N6&gt;2007-08-01&lt;/N6&gt;<br>          &lt;N7&gt;2007-08-01&lt;/N7&gt;<br>          &lt;N8&gt;&lt;/N8&gt;<br>          &lt;N9&gt;&lt;/N9&gt;<br>     &lt;/N&gt;<br>     &lt;P&gt;<br>          &lt;P1&gt;P&lt;/P1&gt;<br>          &lt;P2&gt;000010&lt;/P2&gt;<br>          &lt;P3&gt;0212PL1&lt;/P3&gt;<br>          &lt;P4&gt;2007071&lt;/P4&gt;<br>          &lt;P5&gt;1.000&lt;/P5&gt;<br>          &lt;P6&gt;KRT&lt;/P6&gt;<br>          &lt;P7&gt;&lt;/P7&gt;<br>          &lt;P8&gt;&lt;/P8&gt;<br>          &lt;P9&gt;&lt;/P9&gt;<br>     &lt;/P&gt;<br>&lt;/WZ&gt;<br>&lt;/ns:WZ_MT&gt;<br><br>Regards,<br>Mladen Kovacic</p>

    Hello,
    it seems that we have problem with SAP XI AF CPA Cache.
    We make this changes and after this AF Cache stops working.
    •     In the Visual Administrator, in service SAP XI AF CPA Cache, set the SLDAccess parameter to false
    •     Save your entry and start the service
    •     In service SAP XI AF CPA Cache, check that the cacheType parameter has the value DIRECTORY
    •     In service SAP XI Adapter: XI, enter values for:
    o     xiadapter.isconfig.url - http://xidev:8038/sap/xi/engine?type=entry
    o     xiadapter.isconfig.username - XIAFUSER
    o     xiadapter.isconfig.password –
    o     xiadapter.isconfig.sapClient - 001
    o     xiadapter.isconfig.sapLanguage - en
    •     On the Integration Server, use transaction SMICM to check that you have entered the correct URL for the Integration Server.
    •     On the Integration Server, use transaction SU01 to create a new user XIAFUSER
    •     Assign the role SAP_XI_AF_SERV_USER_MAIN to the user XIAFUSER
    •     In the Visual Administrator, check whether the user synchronization was successful
    •     Use the new user to log on to the Integration Server and change the initial password to master password
    Any idea for SAP XI AF CPA Cache update?

Maybe you are looking for

  • Windows bactch job to trim the Listener log

    Hi All , Can you help me to write a Windows batch job to trim the listener.log on periodically. I have the below steps, which i do manually but i won't which needs to be put in batch. copy listener.log listener_<today>.log lsnrctl set log_file listen

  • How to set network date/time?

    Apple TV wont let me continue setup until network date/time is set.  Runs in endless circles trying to set but never does.  WIFI is good with strong signal and everything has been reset.

  • Internet is messed up

    I have recently moved and my internet worked the first week or so. Now it doesn't. So we bought a lynksis router and it still shuts down. Every hour, it shuts off. First few weeks it was ever 53th minute of the hour. Now its ever 11th minute of the h

  • Seeking solution for RAW to jpeg conversion on 1TB disk[s] of images

    Please read fully Greetings, I have a bit of a dilemma as most might have as well. I have about 3.5TB of RAW images in various directories and seeking an automated way to convert RAW to jpeg on numerous directories...and go get a coffee while the pro

  • Creating Costing Run for Multiple Plants

    Hi, Is it possible to create a costing run for multiple company codes in a controlling area, instead of creating separate costing runs for each company code? Thank-You