How to flow a tagged ASCII text onto a unstructured FrameMaker 10 template?

Hi,
I have large amount of tagged ASCII content in hand, something like this
<title>Chapter title
<h1>Heading 1
<p>paragraph text
<bib>some thext
On the other hand, I also have a FrameMaker 10 unstructured template where title, h1, p, bib, etc style elements are already defined.
Please suggest me a way to flow my text onto the template, which my page composition makes easy.
I am looking forward to hear from you.
Thanks,
Arul

With your current mark-up style (as shown in the original posting), all you would need to do is to add two statements to the start of your file, e.g.
<MML>
<Include "formats.mml">
<title>Chapter title
<h1>Heading 1
<p>paragraph text
<bib>some thext
and create a file called formats.mml that contains DefineTag statements listing exactly the styles that you've used to mark-up the text and that correspond to the catalog entries in your template, e.g.
<MML>
<!DefineTag title>
<!DefineTag h1>
<!DefineTag p>
<!DefineTag bib>
etc.
Then in your template file that already has the predefined styles, File > Import > File and select the data file.
When FM imports the MML file, the included formats.mml file tells FM that the tags already exist in the template and to apply them to the content as it comes in. Note: if you have many of these source files using the same template, you will only need one copy of this formats file.
Note: to separate paragraphs (if not tagged with a preceding <p> or whatever), you must use two or more consecutive return characters, so this might be another minor modification to your input stream depending upon the tagging consistency.
Any "transformation" for your content appears to very minor/trivial from what you've shown so far. Otherwise, I am not aware of any other method of getting the contnt in AS IS without some work up front to transform it to a format that FM can decipher.

Similar Messages

  • How Do I Save an ASCII Text File?

    In the Windoze world, Notepad is a simple editor that saves text strictly in ASCII format. Clean, not embellishments or tags. Sometimes it needs to be that way.
    What do I use to save ASCII text on a Mac? Somebody at the Apple store told me the answer is TextEdit, but when I went to save a file just now my choices were rich text (.rtf), HTML, Word format, or XML. No ASCII in the bunch.
    So, is there a program on here that does what Notepad does? Is there one out there somewhere...??
    --PS

    I forgot to mention, that this can also be set in the Preferences of Textedit to be the default setting:
    use plain text; add .txt extension when saving.
    I think that's all I needed to hear -- I've looked at the preferences for TextEdit and set them the way I think I want them.
    Thanks,
    --PS

  • How to get text flow onto the next page from template "travel journal"?

    When wanting to create a new document, I chose "Travel journal" between "side layouts" in templates. When it opens, you see one page with pictures and example of text.
    When I start to write my text in the text field, it disappears when I get to the end of the page.
    What do I do to have the text move/flow to the next page automatically?

    The "Travel Journal" template is a page layout document & uses text boxes. There is no default flow to another page. You need to insert a new page & then create a linked text box. You can link existing text boxes or create a new text box linked to an existing one. Click the linking triangle then click to create a new box or click an existing box to link to it.

  • When opening the Coloursync utility and pressing the verify button, I received an error message stating that the Tag 'cprt':Text tag has an incorrect length which could not be fixed as the file is locked. Does anyone know how to rectify this?

    When opening the Coloursync utility and pressing the verify button, I received an error message (copy below) stating that the Tag 'cprt':Text tag has an incorrect length which could not be fixed as the file is locked. Does anyone know how to rectify this?
    Checking 25 profiles...
    /Library/ColorSync/Profiles/Displays/iMac-00000610-0000-9C6C-0000-000004271B00.i cc
       Tag 'cprt': Text tag has an incorrect length.
       The file is locked. Could not be fixed.

    Hi guys,
    I followed the steps to unlock the .icc file in the "getinfo" screen then went on clicking repair in colorsync utility.
    This is the message i got:
    Searching for profiles...
    Checking 17 profiles...
    /Library/ColorSync/Profiles/Displays/Color LCD-00000610-0000-9CF3-0000-000004273CC0.icc
       Tag 'cprt': Text tag has an incorrect length. Fixed.
    Repair done - 1 profiles fixed.
    However, when i hit verify again it shows up like this:
    Searching for profiles...
    Checking 17 profiles...
    /Library/ColorSync/Profiles/Displays/Color LCD-00000610-0000-9CF3-0000-000004273CC0.icc
       Tag 'cprt': Text tag has an incorrect length.
    Verify done - found 1 bad profile.
    ... and it keeps like this sine die.
    when i open the .icc file it shows up like this:
    3     'cprt'     'text'     35     Copyright ASCII Text String
    New to mac so I really don't know what to do.
    I didn't get this message so far. What i did before getting this message was to open a jpeg file. I wanted to edit it so when i did right click on the file i went to open with, and colorsync came as an option; so i chose it.
    Then this message started comming up.
    Is there anything i can do?
    Thabks for the support.

  • How to customize the content set in text as part of tag cq:text property="text"/

    We use the tag <cq:text property="text"/> to get the content, which is set in the jcr property "text".  Text was set in Richtext component and it has hyper link.
    Now, we have to customize the text.
    Example:-
    Actual Text in 'text' property:-
    <p>Click <a data-action="Hyperlink" data-upc-tooltip-type="none" href="/content/www-abc-healthcare-ch/en/offer.html">here</a> for the link</p> <p></p>
    After customization in 'text' property:-
    <p>Click <a data-action="Hyperlink" data-upc-tooltip-type="none" href="/content/www-abc-healthcare-ch/en/offer">here</a> for the link</p> <p></p>
    i.e .html has been removed.
    I tried customizing and set back to text attribute using <c:set var="text" value="<CustomizedText>" /> but even after that tag <cq:text property="text"/> retrieves the old content i.e with .html
    Please suggest how to override text content, so that the tag <cq:text property="text"/> will print customized text.

      Which version of cq? Is Strict Extension Check enabled at  http://<host>:<port>/system/console/configMgr/com.day.cq.rewriter.linkchecker.impl.LinkCheckerTra nsformerFactory
    Thanks,
    Sham

  • How can I remove ASCII text from a field when I use it in a query

    How can I remove ASCII text from a field when I use it in a query?
    I am running a select statement on a table that appears to have ASCII text in some of the fields. If I use these fields in the where statement like the code below nothing returns:
    SELECT FIELD1 FROM TABLE1 WHERE FIELD1 IS NULL
    But the field looks empty if I do a straight select without the where clause. Additionally, one of the fields has text but appears to be padded out with ASCII text, which I need to strip out before I can use this field in a where or join statement. I have tried using a trim, ltrim, rtrim, to_char, nvl, decode and nothing works. When I use excel to run the same query it looks as if these ASCII fields are boxes.
    I have asked our DBA team to see what they can do to prevent these from going into the table, but in the mean time I still need to run this report.
    Do you have any suggestions?

    Can you provide an example? I've been trying (for
    example) "select translate(' test one', ascii(' '),
    'X') from dual" with no luck.
    Thank you.To replace space, you should query like this:
    select translate(' test one', chr(32), 'X') from dual instead of select translate(' test one', ascii(' '), 'X') from dual Thanks,
    Dharmesh Patel

  • My iPhone 5S drowned in a rainstorm. How can I retrieve contacts and text messages from iCloud backup onto my iPad mini?

    My iPhone 5S drowned in a rainstorm. How can I retrieve contacts and text messages from iCloud backup onto my iPad mini? There are some contacts on the iPad already but nowhere near all of them. I need to re-enter the contacts manually into an iPhone 4 as it does not support iOS 8.

    Let me get this straight.....You lost your phone.  You never backed it up, either to your computer or to a cloud service.
    How in the world would you expect to get data back?

  • How do you position tags in a spreadsheet? Can I eSign more than one tab in a spreadsheet?

    How do you position tags in a spreadsheet? Can I eSign more than one tab in a spreadsheet?

    Using text tags
    https://workspaces.acrobat.com/app.html#d=Bi-SZ3cbVCHwiWBBp-7G7g
    but spreadsheets are quite difficult to predict as they don't typically have a page size defined. If you can do this in Word it'll be easier.
    or convert to pdf before uploading to EchoSign.
    You an upload a spreadsheet with multiple tab and place tags on each tab and all will get converted.

  • How to use HTML Tags in Smartforms

    Hi,
    Can you please help me out in knowing how to use HTML tags in Smartforms,
    suppose i want to display some text in BOLD i should use the tag </b> as shown
    </b>  Header Information <b>
    regards
    Ranveer

    Hi Ranveer ,
        check this following links,
      hope this wil helps you
    <a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/smartforms/smartform%20in%20abap.pdf">check this link,to know abt HTML in smartforms</a>
    rgds,
    shan

  • Tags, alt text, and PDF accessibility

    I'm thoroughly confused. I just finished the layout for a 176-page book in ID and I'm trying to tag the book for PDF accessibility. I read that it's better to tag in ID before you export to PDF. My problem is, I have no idea what I'm supposed to do or how to do it, and everything I'm reading is confusing me even more. I'm getting nowhere.
    I'm not expecting a full course on this, but can someone please answer a few questions to give me a kick start (I may even ask the wrong questions). 1.) How do you add alt text to graphics in ID, or Acrobat?  2.) How do you add a tag in ID. I mean, I can add a tag but I don't know where or why I'm adding it.  3.) How do you manually tag a file in Acrobat 9 Pro or edit the auto tagging once it's done?
    I'm using the most recent versions of ID and Acrobat Pro, and the most recent version of Mac OSX.
    Thank you.

    I too have been trying to figure this out and have followed the steps
    to add alt text to InDesign before exportign to PDF. I just can't see the alt text in either PDF  or in a browser displaying thee PDF fiel - I  know the tagged text is there because when I open
    the "touch up Reading order" dialog in the
    accesibility tab of Acrobat - the image displays with the appropriate  Alt text. I' checked the accessibility otpion in the browser as well [expand all alt text for images] but I still don't see the alt text when I mouse over teh image - what am I missign here?
    Ann

  • Exporting keys as ascii text

    How can you export a key as ascii text like an armored key in PGP? But not using PGP?

    PGP's ascii-armored text uses Base64 encoding like this example taken from the java almanac:
    http://javaalmanac.com/egs/java.security.cert/ExportCert.html
    // This method writes a certificate to a file. If binary is false, the
        // certificate is base64 encoded.
        public static void export(java.security.cert.Certificate cert, File file, boolean binary) {
            try {
                // Get the encoded form which is suitable for exporting
                byte[] buf = cert.getEncoded();
                FileOutputStream os = new FileOutputStream(file);
                if (binary) {
                    // Write in binary form
                    os.write(buf);
                } else {
                    // Write in text form
                    Writer wr = new OutputStreamWriter(os, Charset.forName("UTF-8"));
                    wr.write("-----BEGIN CERTIFICATE-----\n");
                    wr.write(new sun.misc.BASE64Encoder().encode(buf));
                    wr.write("\n-----END CERTIFICATE-----\n");
                    wr.flush();
                os.close();
            } catch (CertificateEncodingException e) {
            } catch (IOException e) {
        }

  • How can we get  tag of XML file using SAX

    Hi ,
    I'm parsing one SAX parser , I'have almost done this parsing. i have faced problem for one case, i'e how can we get tag from XML file using SAX parser?
    XML file is
    <DFProperties>
    <AccessType>
    <Get/>
    </AccessType> <Description>
    gdhhd
    </Description>
    <DFFormat>
    <chr/>
    </DFFormat>
    <Scope>
    <Permanent/>
    </Scope>
    <DFTitle>gsgd</DFTitle>
    <DFType>
    <MIME>text/plain</MIME>
    </DFType>
    </DFProperties>
    I want out like GET and Permanent... means this one tag which is present inside of another tag.
    Handler class like
    public void startElement(String namespaceURI, String localName,
                   String qName, Attributes atts) throws SAXException {
    if(_ACCESSTYPE.equals(localName)){
                   accessTypeElement=ACCESSTYPE;
    public void characters(char[] ch, int start, int length)
                   throws SAXException {
    if (_ACCESSTYPE.equals(_accessTypeElement)) {
                   String strValue = new String(ch, start, length);
                   System.out.println("Accestype-----------------------------> " + strValue);
                   //System.out.println(" " + strValue);
    public void endElement(String namespaceURI, String localName, String qName)
                   throws SAXException {
    if (_ACCESSTYPE.equals(localName)) {
                   _accessTypeElement = "";
    . please any body help me

    Hi ,
    I have one problem,Please help me.
    1. How can I'll identify where exactly my Node is ended,means how how can we find corresponding nodename? in partcular place
    <Node> .............starttag1
    <NodeName>Test</NodeName>
    <Node>................starttag2
    <nodeName>test1</NodeName>
    </Node>..................endtag2
    <Node>.....................starttag3
    <NodeName><NodeName>
    <Node> .........................starttag4
    <NodeName>test4</NodeName>
    </Node>.......enddtag4
    </Node>...........end tag3
    </Node>............endtag1
    my code is below
    private final String _NODENAME = "NodeName";
    private final String _NODE = "Node";
    private String _nodeElement = "";
         private String _NodeNameElement = "";
    public void startElement(String namespaceURI, String localName,
                   String qName, Attributes atts) throws SAXException {
    if (_NODENAME.equals(localName)) {
                   NodeNameElement = NODENAME;
    if(_NODE.equals(localName)){
         System.out.println("start");
         if (_NODENAME.equals(localName)) {
                   NodeNameElement = NODENAME;
    public void characters(char[] ch, int start, int length)
                   throws SAXException {
    if (_NODENAME.equals(_NodeNameElement)) {
                   String strValue = new String(ch, start, length);
                   String sttt=strValue;
                   System.out.println("NODENAME: ************* " + strValue);
    if(_NODE.equals(_nodeElement)){
                   if (_NODENAME.equals(_NodeNameElement)) {
                        String strValue = new String(ch, start, length);
                        String sttt=strValue;
                        System.out.println("nodevalue********** " + strValue);
    public void endElement(String namespaceURI, String localName, String qName)
                   throws SAXException {
    if (_NODENAME.equals(localName)) {
                   _NodeNameElement = "";
    if(_NODE.equals(localName)){
                   System.out.println("NODENAME: %%%%%%%%%");
    please help me. How can I figure node ending for particular nodename

  • In Pages, How to duplicate a design (multiple text boxes

    In Pages, How to duplicate a design (multiple text boxes & graphics) which is on the top half of the page, onto the bottom half? I appreciate anybody's suggestion!
    Alan

    Hi alanhome,
    Not trying to be cheeky, but a copy and paste doesn't work?
    Cheers,
    GB

  • How to use nested tag in Struts

    Hi..
    Can any one guide me how to use nested tag in Struts. So far i already tried bean tag with no error but when i try to use nested tag i got error like
    javax.servlet.ServletException: Cannot find bean: "" in any scope
    Below are my class:
    action class
    session.setAttribute ("MyDetailList", detailList);
    JSP page
    <logic:iterate id="list" name="MyDetailList">
    Company ID : <bean:write name="list" property="companyID" />
    </logic:iterate>
    For bean tag, i got no error at all and below are my code for nested tag
    action class
    session.setAttribute ("MyDetailList", detailList);
    JSP Page
    <nested:nest property="MyDetailList">
    Make : <nested:text property="make"/>
    Car ID : <nested:text property="carID"/>
    </nested:nest>
    When i run the code, i got error message
    javax.servlet.ServletException: Cannot find bean: "" in any scope
    Any body can help me?
    zul

    what am I doing wrong?You will notice above that I mentioned
    YOU CAN'T USE CUSTOM TAGS AS ATTRIBUTES TO OTHER CUSTOM TAGS
    (was that loud enough for you to notice this time)?
    Try
    <html:text styleId="instruction" styleClass="text" size="50" name="instruction" property="value"/>
    //or
    <html:text styleId="instruction" styleClass="text" size="50" property="instruction" value="<%= instruction.getValue() %>"/>
    better alternative: populate your formbean with your action and just have:
    <html:text styleId="instruction" styleClass="text" size="50" property="instruction"/>
    If you set the "instruction" property of your formBean in the action, the value will be automagically reflected here.
    Cheers,
    evnafets

  • How to get Meta tag information of a video

    Hi,
    I want to read Meta tag information of a video file like Artist,Album,Year,etc....
    I tryed "onMetaData" for a video file.But i didnt get information like Artist,Album,Year,etc...
    The video file can be mp4,avi,mpg,mov. I dont want them to play in swf... I just want to load the file and show the meta tag information as text.
    For audio files i can get id3 information after loading the song.But is there any other way to get them with out loading the sound? Each  loading will take time to give the result.
    Can you help me:
    How to read meta tag of a Video file
    How to read mpg,avi meta tag
    How to read mp3's meta tag with out loading

    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    ns.client = this;
    ns.play("D:/1.mp4");
    var vid:Video = new Video();
    vid.attachNetStream(ns);
    addChild(vid);
    function onMetaData(infoObject:Object):void
        var key:String;
        for (key in infoObject)
            trace(key + ": " + infoObject[key]);
    //result:
    width: 720
    audiosamplerate: 44100
    avcprofile: 77
    audiochannels: 2
    avclevel: 30
    tags:
    videocodecid: avc1
    aacaot: 2
    height: 400
    videoframerate: 30
    duration: 295.3
    moovposition: 36
    audiocodecid: mp4a
    seekpoints: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
    trackinfo: [object Object],[object Object],[object Object],[object Object]

Maybe you are looking for