Leave feedback
  • Discussion

    XML file format which has text attribute like bold, italic, linefeed etc

Enter a new topic
  • Jukka Brunfeldt Jukka Brunfeldt StreamServe Employee
    0 likes 8168 views

    Hi, Are there any tips what we can give to customer who is developing own applications which based on xml. Application will generate letter data where they have special dates, address, ammount etc in middel of text which they like to bold, italic etc. Then they like to force linefeed by application instead streamserve block structure. This text can be more than one page. Are there any cases where you have done something similar? JBr

    Monday 18 January, 2010
  • Jesper Werge Jesper Werge StreamServe Employee
    0 likes

    Hi Jukka,

    At Sonofon, we have done exactly this. the System is sending xml with CDATA elements where they are using html systax for bold <b></b>,  italic <i></i>, center text <c></c>, ident <indent></indent> and so on.

    I have a table in the StreamServe projet that converts this to lxf syntax.

    the only drawback is that the replaced syntax, need to be inside an advanced text area on the pageout, but I guess you will do this any way :)

    /Jespe

    Monday 18 January, 2010
  • Anders Ekstrom Anders Ekstrom
    0 likes

    One customer do this for their terms and conditions (pageout) where xml-data are stored in sql-database and the xml triggering the event contains db keys to get the texts in right order. Texts are then formatted to lxf with scripting and a table like the one Jesper describe. E.g.

    "<text>"                                              <font name="Times New Roman" size="11.0742" cell2char="0.903" ptsize="10.0"/>

    "</text>"           

    "<b>"                                                    <font name="Times New Roman" style="bold" size="11.0742" cell2char="0.903"/>

    "</b>"                                                  <font name="Times New Roman" size="11.0742" cell2char="0.903" ptsize="10.0"/>

    The gettextformattinginfo-functions is then used to create lxf-segments that can flow between two columns (scripting for setting x and y coordinates).

    Lessons learned: slow performance, lxf-hacking is considered as an unsupported solution (?) and long development time with lots of tests. Maintainability is also low cause it requires quite some skill to understand the scripting and is hard for someone new to learn how to correct errors etc.

    Suggestion: Use Persuasion, composition center and story teller instead. Convince the customer that they have a bad architecture and that their approach is bad. StreamServe have got some sophisticated features that takes care of line breaking and page overflow that is not possible to do in advance in another system. The reason the customer wants to do like this is because they have no proper StreamServe training and do not trust our tools taking care of their business, however it will give them a solution with less quality, performance and a higher cost cause they do not use the best of breed functionality and they do not follow best practices. There are a possible number of possibilities for document layout that they can not handle in their scenario when they build it like this:

    -Introducing more document dynamic behavior, e.g. white space management etc

    -Changing fonts in the future will be a pain

    -Changing size of logos, footers etc will possibly be a pain

    -Adapt to other paper formats (letter, A4) will be a pain

    -Variable texts that are inserted into static texts must be pain to handle (compc + storyteller takes care of this)

    //Anders

    Monday 18 January, 2010
  • araya lesom araya lesom
    0 likes

    plase!! you tell script at picture me. 

    Thursday 24 May, 2012

    Attached files

    2223.bmp 1650 KB
    2223.bmp 1650 KB
  • araya lesom araya lesom
    0 likes

    Hi  Jesper Werge

     lxf syntax ?

     

    Tuesday 18 September, 2012
  • araya lesom araya lesom
    0 likes

    Hi  Jesper Werge

     lxf syntax ?

     

    Tuesday 18 September, 2012
  • araya lesom araya lesom
    0 likes

    Hi  Jesper Werge

     lxf syntax ?

     

    Tuesday 18 September, 2012