Giter Site home page Giter Site logo

Comments (3)

rouschr avatar rouschr commented on September 26, 2024

According to a previous analysis we did it was indeed the XSL generation which was slow.
We have some internal tickets about this but currently our focus is on the SDK and (especially for me) the editor demo "save notice to XML" feature.

from eforms-notice-viewer.

rousso avatar rousso commented on September 26, 2024

Hi @wanao-dc,

The answer to your question is simple: You do not need to translate on demand. :)

You should convert the EFX files to XSL once and then use them when you need them,
There is no reason to translate again and again and again for each XML that you want to render.

Just translate once, after you download the SDK, store them in a folder and use them when you need them.
You only need to translate once per version of the SDK. Template translation is deterministic :)

Keep the translated files in a folder and name the folder by using the major and minor version numbers of the SDK only.
So, for example:

  • Download SDK 1.3.2
  • Translate all EFX files to XSL (or whatever template language you want)
  • Store the translated files in a folder called 1.3 (or XSL-1.3, or eforms-sdk-1.3 or something like that).
  • When you need to visualise a notice, then take the proper XSL from that folder and apply it to the XML.
    To select the correct XSL for a particular notice XML, you need to first determine the correct folder where the XSL file is stored by looking at the cbc:CustomizationID element in the XML which tells you the version number of the SDK that was used to create that notice. You also need to look at the cbc:SubTypeCode element to find the proper XSL file in that folder.
  • When SDK 1.3.3 is released, then download it, translate again and overwrite the files in the 1.3 folder.
  • When SDK 1.4.0 is released then download it, translate again and store the files in a new 1.4 folder.
  • And so on....

Remember, the notice viewer is a sample application that was only built to demonstrate the concept.
It was not built for speed :)

We may add this "pre-translation" feature in a future version of the notice viewer but for the moment we have more pressing things that need our attention. If you decide to implement this yourself in the eforms-notice-viewer sample application, then we will be happy to review and merge your pull request. :)

I hope this helps.
Yannis

from eforms-notice-viewer.

wanao-dc avatar wanao-dc commented on September 26, 2024

Hi @rousso

Thank you for your answer,
You really help me to understand how it works and what can i do.

I understand that you have many other things to do before .

Didier

from eforms-notice-viewer.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.