HW19

Last modified by superadmin on 2018-01-12 20:29

HW19: Producing XWiki markup from XHTML data

Goal: Given files in a custom XML markup, write software, which extracts pieces of XHTML contained therein, transforms them into a Textile format and saves into database tables. Description: You will process XHTML files, which contain text documents with a limited vocabulary of HTML markup (the tags are - html, head, title, meta, link, script, body, div, h1, h2, h3, h4, pre, b, i, u, tt) to XWiki markup, which produces equivalent document. You should pay attention to the correct translation of special symbols (e.g. backslash (&#x5c), asterisk, dot (.), square brackets ([, ])) have special meaning in XWiki documents in some contexts, so to produce them, you should escape them properly. 

Notes

XSLT 1.0 transformations are normally used to transform XML data into something (in this case XWiki markup). You may use XSLT or any other method that feels easy. 

Tags:
Created by Kalvis Apsītis on 2007-10-21 16:28
    
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.4 - Documentation