Please disable Adblockers and enable JavaScript for domain CEWebS.cs.univie.ac.at! We have NO ADS, but they may interfere with some of our course material.
[Info]
Assignment 4
NEXT YEAR: alles in ein zip und struktur vorgeben:
exec soll so ausführbar sein und keinen fließtext enthalten oder fixe strukture für mapping 1:1:1 = xslt1 othercode/result1 zu origcode/result1
Additional 2 points will be awarded for 4a and 4b (2 points for each).
Beneath you find the XML files assigned to you. The XML files represent data that deals with the same topic that you do.
IMPORTANT: these files may not be in the same structure as your files, they might hold different data granularity, some pieces might be
distributed over multiple files, and some pieces might be even missing.
GOLDEN RULE: If something is missing, assume sane defaults (BUT ONLY IF SOMETHING IS MISSING). Add helper resultX.xml files if absolutely necessary. Or leave the part blank in your XML. Use good judgement.
Assignment 4a - XSLT Transformation
Create 5 XSLT files, that generate your XML format out of the given XML files. Adhere to the GOLDEN RULE above.
Additional rules:
- The transformation is only valid if it can be executed with xsltproc transform.xsl data.xml.
- The resultX.xml files can not be changed.
- You can test the new files with the RNG, it is allowed to add <optional> to the RNG (but ONLY optional).
Submission
- 1 file origcode.zip with 5 resultX.xml files, and 5 resultX.rng files. X is the number from 1 to 5 (or higher if you have more than 5 queries). The resultX.xml HAS TO BE UNMODIFIED from the file you downloaded.The resultX.rng should also basically be the same UNMODIFIED file you downloaded, but it is allowed to slightly modify the resultX.rng according to the rules.
- 1 file othercode.zip which contains the unmodified version of the code.zip you downloaded.
- 1 file transformation.zip with 5 files xsltX.xsl, which can transform the one or many resultX.xml from the othercode.zip into the resultX.xml from the origcode.zip. X is the number from 1 to 5 (or higher if you have more than 5).
- 1 file exec.txt with all xsltproc calls you use. E.g. '
xsltproc transformation1.xsl othercode/result1.xml > newcode/result1.xml'
xsltproc transformation2.xsl othercode/result1.xml > newcode/result2.xml'
Hints
- If the filenames are not correct, you will get no points.
- If you violate any rules you will get no points.
Assignment 4b - XQuery
Create 5 XQ files, that generate your XML format out of the given XML files. Adhere to the GOLDEN RULE above.
Additional rules:
- The transformation is only valid if it can be executed with zorba xqueryX.xq.
- The resultX.xml files can not be changed.
- You can test the new files with the RNG, it is allowed to add <optional> to the RNG (but ONLY optional).
Submission
- 1 file origcode.zip with 5 resultX.xml files, and 5 resultX.rng files. X is the number from 1 to 5 (or higher if you have more than 5 queries). The resultX.xml HAS TO BE UNMODIFIED umodified from the file you downloaded. The resultX.rng should also basically be the same UNMODIFIED file you downloaded, but it is allowed to slightly modify the resultX.rng according to the rules.
- 1 file othercode.zip which contains the unmodified version of the code.zip you downloaded.
- 1 file transformation.zip with 5 files xqueryX.xq, which can transform the one or many resultX.xml from the othercode.zip into the resultX.xml from the origcode.zip. X is number from 1 to 5 (or higher if you have more than 5).
- 1 file exec.txt with all xsltproc calls you use. E.g. '
xsltproc transformation1.xsl othercode/result1.xml > newcode/result1.xml'
xsltproc transformation2.xsl othercode/result1.xml > newcode/result2.xml'
Hints
- If the filenames are not correct, you will get no points.
- If you violate any rules you will get no points.
Letzte Änderung: 30.06.2017, 16:36 | 1272 Worte