Comments (3)
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.
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
(orXSL-1.3
, oreforms-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 thecbc: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 thecbc: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.
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)
- ParseCancellationException HOT 6
- Validation of SDK example notices fails with this notice viewer HOT 2
- Notice viewer NPE since SDK dependency
- NoticeViewer0.8.0 can't download https://repo.maven.apache.org/maven2/eu/europa/ted/eforms/eforms-sdk/1.7.0-SNAPSHOT/eforms-sdk-1.7.0-SNAPSHOT.jar HOT 4
- Problem with the translation key HOT 2
- install error HOT 2
- running eforms-notice-viewer-0.8.0-SNAPSHOT-app.jar thows error HOT 7
- Handling restricted fields in viewer HOT 2
- Available in Python? HOT 1
- add params to the command line for choosing the destination filename HOT 2
- increase performance HOT 2
- Error in eforms-notice-viewer when processing xml File HOT 1
- Compilation failure in eforms-notice-viewer 0.10.0 due to missing dependency HOT 2
- Problem generating HTML with multiple dates HOT 4
- Performance / Some documents take hours to convert HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eforms-notice-viewer.