Port XSLT code to Javascript

  • Tila: Closed
  • Palkinto: $35
  • Vastaanotetut työt: 2
  • Voittaja: kasianand

Kilpailun tehtävänanto

The attached files are a subset of a larger project, as a proof-of-concept.

I need you to write a simple javascript file, that I can load into my browser, which will convert the *.xml in the same way that they are currently converted by .xsl file I supplied.

You can see the desired effects by loading the [login to view URL] or [login to view URL] directly into a browser.

In particular, what I want is:
- All the project files will live on the same host. It should work both from the local file system or from a simple file-serving web-host. (You do not need to handle any cross-host issues or similar problems).
- The main page will be index.html. The top of the page will show a list of the xml files. When the user selects one, the bottom of the page will show the results of processing that file.

The file processing results should look the same as the current results generated by .xslt. In particular:
- <line> defines a line of words
- <w> defines a word.
- The l1 attribute to word causes rotated text and a graphic to appear at the start of the line.
- The l2 attribute to word causes a graphic to appear at the end of the line.
- All lines are indented to line up with the lines that have the l1 attribute.
- The e1 attribute to w draws a left border; the e2 attribute to w draws a right border
- The t attribute to w associates a tag with the word
- The tags are also defined in the .xml file
- The tag determines the background color to be displayed for each word, the padding, and a label to place under it
- The fonts should all be exactly as rendered by the xslt
- In particular, any word that contains Arabic letters (per a list you can copy from the xslt) should use the lateef font

There should be no XSLT in your delivered work. All the functionality should be in Javascript.

The result should display properly in Chrome, Firefox, and Internet Explorer 11.

This contest will be judged by cleanliness/readability of code; brevity (but not at the expense of clarity); and speed of delivery.
You will transfer ownership of delivered code to me.

Suositellut taidot

Työnantajan palaute

“Delivered quickly, and worked immediately.”

Profiilikuva degel, Israel.

Kilpailun parhaat työt

Näytä lisää töitä

Julkinen selvennystaulu

  • AurelianR
    • 4 vuotta sitten

    Hello could you post the xslt content?

    • 4 vuotta sitten
    1. degel
      Kilpailun järjestäjä
      • 4 vuotta sitten

      It is in the zip file that I posted.

      • 4 vuotta sitten
  • kasianand
    • 4 vuotta sitten

    Kindly rate #1 . I hope it meets your requirements

    • 4 vuotta sitten

Kuinka päästä alkuun kilpailuiden kanssa

  • Ilmoita kilpailusi

    Ilmoita kilpailusi Nopeaa ja helppoa

  • Saat valtavasti töitä

    Vastaanota tonnikaupalla osallistumisia Ympäri maailmaa

  • Myönnä palkinto parhaalle työlle

    Myönnä palkinto parhaalle työlle Lataa tiedostot - Helppoa!

Ilmoita kilpailu nyt tai liity tänään!