HW19: Producing XWiki markup from XHTML data

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

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 XWiki 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. 


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. This page source XML file is availabe in Attachments section (HWXHTML2XWiki.xml). You need to produce the part inside &lt content&gt&lt/content&gt tags.


Created by Alina Vasiljeva on 2009-11-26 13:00
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.4 - Documentation