Formatting elements with pgfFmt

Hi all,
I'm a complete beginner at FrameMaker and scripting of the same, and I've been tasked with converting S1000D documents in XML format into FrameMaker files using an unstructured template.
I've managed to import some XML files into FrameMaker and saved them as .fm files. Now I need to set different paragraph formats on different elements in those files. The paragraph formats are taken from an unstructured document and imported into the files. How can I assign them to the different elements?
I'm currently walking through the elements in the document from mainFlow.HighestLevelElement using the FirstChildElement and NextSiblingElement methods and checking the ElementDef.Name for the tag name, which works, but I've so far been unable  to find a way to set a format on the Element. Is it possible? Is there a better way? Any suggestions welcome.
Best,
Lisbeth

Hello Lisbeth,
I am sorry but you are taking a completely wrong approach to the problem. Opening an XML file in FM and saving it as an FM file does not make it unstructured and it never will, or should. I understand your problem as follows: you have the XML documents and need to apply the formats from an unstructured FM template to the various elements.
There are two different options I can see for you:
1. Change the EDD for the structured application that is used to import the S100D documents into FM. This is not the easiest job in the world but it can certainly be done. Instead of assigning the formats that happen to be in the template that FrameMaker uses for importing S1000D documents, the EDD would then assign the formats from your unstructured document to the elements. There are various developers on this forum - including myself - who would gladly do this work for a reasonable fee.
2. Open the template that FrameMaker uses to import S1000D documents and adapt the styles in that document to the ones you have in the unstructured template. In this case, the names of the formats in all the paragraphs of the imported document will not change to the names used in your unstructured template but the end result will look the same. This work is tedious and may take quite some time, but it does not require a lot of in-depth knowledge of structured applications and EDDs.
If the formats have to have the names of the styles defined in the unstructured template, option 1 is the only one for you.
Kind regards
Jang

Similar Messages

  • How to use FM format element in number format model

    Dear all,
    Could anybody explain what is FM format element for in number format model? I read the documentation, it doesn't show a clear description as it those in Datetime Format Model section.
    regards,
    Valerie

    It works mopre or less the same for numbers as for dates:
    SQL> -- generating some numbers:
    SQL> with t as (
      2  select level n
      3  from   dual
      4  connect by level <= 10
      5  )
      6  --
      7  -- actual query:
      8  --
      9  select n
    10  ,      '*'||to_char(n, '09')||'*' nofm
    11  ,      '*'||to_char(n, 'fm09')||'*' fm
    12  ,      length(to_char(n, '09')) lnofm
    13  ,      length(to_char(n, 'fm09')) lfm
    14  from   t;
             N NOFM            FM                   LNOFM        LFM
             1 * 01*           *01*                     3          2
             2 * 02*           *02*                     3          2
             3 * 03*           *03*                     3          2
             4 * 04*           *04*                     3          2
             5 * 05*           *05*                     3          2
             6 * 06*           *06*                     3          2
             7 * 07*           *07*                     3          2
             8 * 08*           *08*                     3          2
             9 * 09*           *09*                     3          2
            10 * 10*           *10*                     3          2
    10 rows selected.As you can see, the leading spaces are trimmed.

  • Issue with working on a webservice that has  xml elements with attributes

    This is  a branchout of Thread: Some more complex sample of invokin WS needed_
    We are working on a project that involves a outbound SALT Web service call that includes complex elements with attributes..We are looking for options of how to use FML API's to pass these attribute values from the application code.
    We opened a ticket with oracle where we were suggested to frame the entire xml and pass the xml using the FML32 of the complex element. But when we framed the xml for Service and put the entire XML which includes the attributes using the FML ID of Service.
    Please find a sample Schema and XML similar to the one we are working on...its associated code
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:element name="Service" type="Service_Type" nillable="true">
              <xs:annotation>
                   <xs:documentation>Comment describing your root element</xs:documentation>
              </xs:annotation>
         </xs:element>
         <xs:complexType name="Service_Type">
              <xs:sequence>
                   <xs:element name="DateTime" type="xs:dateTime" nillable="true">
                   </xs:element>
                   <xs:element name="UUID" nillable="true">
                   </xs:element>
                   <xs:element name="Status" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded">
                   </xs:element>
              </xs:sequence>
              <xs:attribute name="Version" type="xs:string" use="required">
              </xs:attribute>
              <xs:attribute name="Name" type="xs:string" use="required">
              </xs:attribute>
         </xs:complexType>
    </xs:schema>
    The sample XML is :
    ___<?xml version="1.0" encoding="UTF-8"?>___
    ___<!--Sample XML file generated by XMLSpy v2010 rel. 2 (http://www.altova.com)-->___
    ___<Service Name="TestService" Version="1.1" xsi:noNamespaceSchemaLocation="Untitled6.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">___
    ___     <DateTime>2001-12-17T09:30:47Z</DateTime>___
    ___     <UUID>text</UUID>___
    ___</Service>___
    wsdlcvt generated the mif file with Service as a FML32 type and all its child elements as "mbstring". We tried to leave as it is and we also tried to replace all the child elements and just had a mif entry for "Service" as a mbstring neither produced a different output...Tried to dump using Ferror32 which did not dump any..._
    The sample C/C++ code as per suggestions were to do the following...
    _1) Have a string with the entire XML for Service_
    xmldata="<Service Name=\"TestService"\ Version="1.1\"_ xsi:noNamespaceSchemaLocation=\"Untitled6.xsd\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">_
    _     <DateTime>2001-12-17T09:30:47Z</DateTime>_
    _     <UUID>text</UUID>_
    _</Service>";_
    _2) Use Fmbpack32 to create a mbstring data_
    _memcpy(reqmbptr, (char*)xmldata.data(),xmldata.length());_
    _len=xmldata.length();_
    _Fmbpack32(mbcodeName,reqmbptr,len, packdata,(FLDLEN32 *)&packedlen,0);_
    userlog("Size of packedlen is %d",packedlen);
    3) Add the packed data to the output buffer
    Fadd32(fmlbuffer,Service, packdata,packedlen );
    But we do not see the Service tag populated in the GWWS outbound request.Everything else makes it....any help on how to move ahead would be appreciated...

    It seems you switch to the 10gR3 GA and now the whole XML data is mapped to FLD_MBSTRING.
    I will forward my sample to you by mail, but this sample is not offical sample, it is just QA test case. You can refere it and check what's the difference.
    Please let me know your mail address.
    Regards,
    Xu he

  • Partition an Advanced Format drive with 4KB sector (for Linux OS only)

    I got a brand new WD 1TB drive, model WD10EZEX, I'm upgrading from an old 500 GB drive with Arch running on it, and I'm going to make a fresh Arch install on it.
    I suddenly learned about all this Advanced Format issue, with the first units "lying" about physical sector size and all that stuff, which started like 2 years ago and I was not aware of.
    I couldn't find a step by step guide to perform the proper formatting for a fresh Linux OS install with 4KB-sector, despite the info is out there scattered in tons of blogs, forums, etc.
    I figured out the steps for my simple setup, and I'd like to know if everything is all right. For the ones who already know the steps, can you please go to the bottom of the post, and tell me if the final setup is all right to start the fresh install ??  I reproduce all the steps hoping that this will help other people in the future.
    I'll use the whole drive only for an Archlinux install, with one partition for the / and another for /home.
    Seems the GPT modern method is the way to go, and the gdisk tool will do the trick. If we are booting from this drive, with GRUB2 in a BIOS system, we must also create a BIOS Boot Partition.
    So, with the drive having no partitions at all, and sda being the device name
    # gdisk /dev/sda
    Command (? for help): p
    Disk /dev/sda: 1953525168 sectors, 931.5 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): 6527769B-B4BC-408C-A45B-D2DAA4036620
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 1953525134
    Partitions will be aligned on 2048-sector boundaries
    Total free space is 1953525101 sectors (931.5 GiB)
    Number Start (sector) End (sector) Size Code Name
    we create the 2 MiB BIOS Boot Partition
    Command (? for help): n
    Partition number (1-128, default 1): 1
    First sector (34-1953525134, default = 2048) or {+-}size{KMGTP}: 2048
    Last sector (2048-1953525134, default = 1953525134) or {+-}size{KMGTP}: +2M
    Current type is 'Linux filesystem'
    Hex code or GUID (L to show codes, Enter = 8300): ef02
    a 45GB partition to use as /
    Command (? for help): n
    Partition number (2-128, default 2):
    First sector (34-1953525134, default = 6144) or {+-}size{KMGTP}:
    Last sector (6144-1953525134, default = 1953525134) or {+-}size{KMGTP}: +45G
    Current type is 'Linux filesystem'
    Hex code or GUID (L to show codes, Enter = 8300): 8300
    Changed type of partition to 'Linux filesystem'
    and the rest to use as /home
    Command (? for help): n
    Partition number (3-128, default 3): 3
    First sector (34-1953525134, default = 94377984) or {+-}size{KMGTP}:
    Last sector (94377984-1953525134, default = 1953525134) or {+-}size{KMGTP}:
    Current type is 'Linux filesystem'
    Hex code or GUID (L to show codes, Enter = 8300): 8300
    Changed type of partition to 'Linux filesystem'
    we can check the setup
    Command (? for help): p
    Disk /dev/sda: 1953525168 sectors, 931.5 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): 6527769B-B4BC-408C-A45B-D2DAA4036620
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 1953525134
    Partitions will be aligned on 2048-sector boundaries
    Total free space is 2014 sectors (1007.0 KiB)
    Number Start (sector) End (sector) Size Code Name
    1 2048 6143 2.0 MiB EF02 BIOS boot partition
    2 6144 94377983 45.0 GiB 8300 Linux filesystem
    3 94377984 1953525134 886.5 GiB 8300 Linux filesystem
    and everything looks fine, we have the multiples of 8 starting sectors, so we write the changes
    Command (? for help): w
    Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!!
    Do you want to proceed? (Y/N): y
    OK; writing new GUID partition table (GPT) to /dev/sda.
    The operation has completed successfully.
    now we need to give the / and /home partitions a format, I choose ext4 and ask for a 4096 block size just in case we have a "lying" unit (not my case but I prefer to write down the most general command)
    # mkfs.ext4 -b 4096 /dev/sda2
    mke2fs 1.42.6 (21-Sep-2012)
    Filesystem label=
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    Stride=0 blocks, Stripe width=0 blocks
    2949120 inodes, 11796480 blocks
    589824 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=4294967296
    360 block groups
    32768 blocks per group, 32768 fragments per group
    8192 inodes per group
    Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000, 7962624, 11239424
    Allocating group tables: done
    Writing inode tables: done
    Creating journal (32768 blocks): done
    Writing superblocks and filesystem accounting information: done
    and the same thing for /dev/sda3 .
    Check with gdisk and parted that everything is fine, is this all right to start the install ??
    # gdisk -l /dev/sda
    GPT fdisk (gdisk) version 0.8.5
    Partition table scan:
    MBR: protective
    BSD: not present
    APM: not present
    GPT: present
    Found valid GPT with protective MBR; using GPT.
    Disk /dev/sda: 1953525168 sectors, 931.5 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): 6527769B-B4BC-408C-A45B-D2DAA4036620
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 1953525134
    Partitions will be aligned on 2048-sector boundaries
    Total free space is 2014 sectors (1007.0 KiB)
    Number Start (sector) End (sector) Size Code Name
    1 2048 6143 2.0 MiB EF02 BIOS boot partition
    2 6144 94377983 45.0 GiB 8300 Linux filesystem
    3 94377984 1953525134 886.5 GiB 8300 Linux filesystem
    # parted /dev/sda
    GNU Parted 3.1
    Using /dev/sda
    Welcome to GNU Parted! Type 'help' to view a list of commands.
    (parted) print
    Model: ATA WDC WD10EZEX-00R (scsi)
    Disk /dev/sda: 1000GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: gpt
    Disk Flags:
    Number Start End Size File system Name Flags
    1 1049kB 3146kB 2097kB BIOS boot partition bios_grub
    2 3146kB 48.3GB 48.3GB ext4 Linux filesystem
    3 48.3GB 1000GB 952GB ext4 Linux filesystem
    Last edited by karamaz0v (2012-12-06 06:39:45)

    Your partitions look fine from an Advanced Format point of view. The test is simple: Are all your partitions' start points, as measured in sectors, divisible by 8? Yours are.
    karamaz0v wrote:what confused me a bit, was that I saw a lot of setups with the BIOS boot partition, and also a 200 MB EFI one. Having a BIOS system, I think I don't need the EFI one.
    Some people do this because they're unclear of their requirements. Others do it because they want to have the option of switching boot modes between BIOS/legacy and EFI. With both types of boot loader installed, you can choose on a boot-by-boot basis which way to start the computer, assuming it supports both boot modes.

  • Had Photoshop Elements 12 on my other Mac that recently got smashed, new one has no CD drive. How do I install Elements with my product key? Purchasing an external CD drive is not an option at this time after forking over the 2500 for the new Mac...

    Had Photoshop Elements 12 on my other Mac that recently got smashed, new one has no CD drive. How do I install Elements with my product key? Purchasing an external CD drive is not an option at this time after forking over the 2500 for the new Mac...

    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5.6| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Append XML elements with same name in an XML document

    Hi,
    I am using Oracle9i XMLDB utilities to modify an XML document stored in the database. I have a sample XML document like this in the database:
    <Person>
    <Address ID="1"> </Address>
    </Person>
    My task is to include a second <Address> element with a different attribute so that my XML document will become
    <Person>
    <Address ID="1"> </Address>
    <Address ID="2"> </Address>
    </Person>
    After creating the second element, I am using the function xmldom.appendChild() or xmldom.insertBefore() but they remove the first <Address> element and replace it with the second one. This is not what I want since I want both <Address> elements to be present.
    Could anyone please advise.
    Thanks.
    A. Dennis

    Please post your question [url http://forums.oracle.com/forums/forum.jsp?forum=154]here for quick response.
    thank you.
    Regards,
    Anupama
    [url http://otn.oracle.com/sample_code/]OTN Sample Code

  • My computer keeps defaulting from a GB format to US format keyboard with a US flag in the top bar. How do I get it to go back to a GB flag and stay with a GB flag?

    My computer keeps defaulting from a GB format to US format keyboard with a US flag in the top bar. How do I get it to go back to a GB flag and stay with a GB flag?
    This only started 2 days ago.
    I have seen much on line as this seems to be a common problem, however none of the suggestions posted seem to work.

    Thanks Drew,
    On clicking the US flag I had previously then unchecked the US box. It has rechecked itself, and I have unchecked it again. The GB English remains checked.
    The flag icon has now gone completely from the top bar (just replaced with character and keyboard viewer) -but that's fine. That's different to previous attempts to fix the issue.
    Hopefully now I will remain able to type a £ sign on the keyboard rather than get the criss-cross symbol. It may well default back in about an hour (which is what has been happening since this started 2 days ago). If it does I'll come back on here. Many thanks in the mean time for your help.

  • Trying to install final cut express keep getting error message "FCE" can't install on this disk.  A newer version of this software already exists on this disk.  Have remove all FCE elements with no success.

    Keep getting error message "FCE" can't install on this disk.  A newer version of this software already exists on this disk.  Have remove all FCE elements with no success.

    http://www.digitalrebellion.com/fcsremover/

  • Text element with line item content and include text

    Hi All,
    How to write in smartform in single text element with line item content and include text.I am using this text element in table . Pls help me out. i am writing the include command in text element ,but this command is not enough for single line of text editor.
    thanks ,
    Rakesh singh

    I have been pulling my hair out for a few days trying to find
    this solution. This fixed my problems as well.
    I was getting ready to scrap the Report Builder altogether
    and move to SQL Server Reporting Services over this issue.
    I'm running 7.0.2 also, that version alone fixed many small
    issues like creating borders and such.
    Thanks

  • Getting multiple XML elements with UCCX 4

    I am trying to pick up multiple elements with identical tags from an XML file.
    (Example)
    <NAME1>
    <PHONE>123-1234-3456</PHONE>
    <PHONE>506-245-5566</PHONE>
    </NAME1>
    I am able to pick up the first PHONE, but when using a second Get XML step I get the same again. How do we traverse the file without actually numbering the tags?
    (Thought I did this before, but maybe not...)
    regards
    Johnny

    Hi Johnny,
    Did you ever find a solution?  I'm running into the same scenario.
    Thanks!
    Mike

  • Can i have xml elements with same name but one is having attrbt..?

    Hi all,
    I am suppose to take input from one system into BPEL.That system is auto gererating xml file. But that file is strange. It has two xml element with
    same name but with completely different sequence. First one is having two comlexTypes while second is having 5 simple types.
    Now the difference is First element is having attribute while second is not.
    So is that file is correct.?
    thanks a lot.
    /mishit

    can you post the file? or load the file into JDeveloper and check the syntax or use XMLSpy for validation of the XML.

  • Smartform: Formatting Problem with QUAN-Field

    I want to print a smartform and get exception 1 (formatting error). With function SSF_READ_ERRORS I get an error table. There is on entry: errnumber = 020011, msgid = SSFCOMPOSER, msgty = E, msgno = 601, msgv1 = wa_outtab-menge.
    It seems to be a formatting problem with field WA_OUTTAB-MENGE. But in the structure this field is referenced correctly.
    Does anybody know a solution?

    I solve this kind of problem in my SmartForm.
    Try this:
    Go to "Global Definitions" Node, then "Current/Quant.Fields" tab and set these values:
    Field Name:      WA_OUTTAB-MENGE
    Reference Field: WA_OUTTAB-MEINS
    Data Type:       QUAN
    Best Regards,
    Eduardo Ribeiro.

  • How do I import movies with an AVI format taken with a digital SLR?

    How do I import movies with an AVI format taken with a digital SLR?

    If you cannot import using File Menu > Import Movies... You'll have to convert them on a Mac.
    You will need to use a free app called MPEG Streamclip from Squared 5.
    Basically, you drag the .mts file into MPEG Streamclip. Then use FILE/EXPORT USING QUICKTIME and choose Apple Intermediate Codec as your codec. And it will save out to a .mov file and iMovie will edit this format like there was no tomorrow

  • I have firefox 21.0. For some reason, it's not resizing html elements with Javascript. When I use getElementById, it ignores the changes I try to make.

    I've tried resizing and repositioning the element with this code:
    <pre><nowiki>widthPercentage = screen.availWidth / 800;
    heightPercentage = (screen.availHeight / 600);
    squareLeft = (124* widthPercentage);
    squareTop = 202;
    if (document.getElementById)
    TEMPO = document.getElementById('SQUARE');
    TEMPO.style.left = (124 * widthPercentage);
    I've tried with this code:
    squareTop = 202;
    squareLeft = (124 * widthPercentage);
    starterWidth = (495 * widthPercentage);
    starterHeight = (99 * heightPercentage);
    TEMPO = '<DIV ID="SQUARE" STYLE="position:absolute; left:squareLeft; top:squareTop; visibility:visible;">';
    TEMPO += '<P>';
    TEMPO += '<img name="screenTitle_box" ID="STARTER" src="ARTWORK/FRONT_SCREEN_TITLE_5.JPG" HEIGHT=starterHeight WIDTH=starterWidth>';
    TEMPO += '</P>';
    TEMPO += '</DIV>';
    document.getElementById('SQUARE').innerHTML = TEMPO;
    Neither way works. But the same code works in Internet Explorer.
    Here's the element I'm trying to manipulate:
    <DIV ID="SQUARE" STYLE="position:absolute; left:333px; top:10px; visibility:visible;">
    <P>
    <img name="screenTitle_box" ID="STARTER" src="ARTWORK/PICTURE_5.JPG" HEIGHT="150" WIDTH="900">
    </P>
    </DIV></nowiki></pre>

    A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.<br>
    You need to register at the MozillaZine forum site in order to post at that forum.

  • I have coverage with mixed formats -  some with PAL ( we think 4:3 ratio) and some HD. When I chose

    I have coverage with mixed formats -  some with PAL ( we think 4:3 ratio) and some HD. When I chose our sequence settings to begin with, is there a way of preventing some shots with bars either at left and right or top and bottom?

    Choose PAL 4x3 and scale down the rest.

Maybe you are looking for

  • How do i restore my ipod that wont turn on?

    i went to an apple store because i thought my ipod wouldnt turn on, but he told me to just restore it on itunes. i plugged my ipod into the computer and it wont even turn on, so i cant restore it.

  • Content Server 6.40 on Raw Devices

    Hi Folks! We'd like to install a Content Server 6.40 using raw devices (on Linux Suse SLES9). Do we need to install the MaxDB, if we use raw devices? At this point the InstGuide does not give a clear description of what to do. It looks we can use the

  • Please suggest logic to this

    create table testlog(lnum number, col1 number, col2 number, col3 number) insert into testlog values (1234,1,1,1) insert into testlog values (1233,2,8,1) insert into testlog values (5233,2,8,4) I am about to add a new column to this table, ctr, which

  • IMAP PORTAL ERROR..

    Hi, I have configured our Oracle AS for the IMAP portal.. SO by loading the page with the email portal I retrieve a list of all my emails from the IMAP server.. perfect! I can see from the logs no exceptions and the fact I can see all my emails and I

  • Can I control download time on software update?

    Hi,  just updated to 7.1.  I keep my ipad plugged in,  sleep mode.  Got a notification asking if I wanted to install 7.1 update.  I thought it was suppose to ask if I wanted to download first.  It evidently had already downloaded.  Can I control when