Skip to main content
Article thumbnail
Location of Repository

CSS Object Model in Java

By Jan Švercl

Abstract

This thesis concerns itself with the problems of manipulation with Cascading Style Sheets. The first aim is to create a library for manipulation with Cascading Style Sheets - an object interface of Cascading Style Sheet is proposed, a parser is generated by means of an appliance of JavaCC, the implementation of interface is completed and as a whole connected to a functional unit. The library enables reading Cascading Style Sheet and its transfer into an object representation, editing and subsequently exporting back to the text file. The second part of the thesis deals with the implementation of library for assign property values - every (X)HTML document is formed by the tree of elements to which the rules are consequently searched for in CSS and their declarations are asigned in the correct order. In conclusion of the thesis the DEMO application, which illustrates the possibilities of both libraries and facilitates performing of experiments or testing, is described. Hereafter the technique of profiling, which enables to find out the efficiently demanding passages, which can be optimised further, in the source code, is shown

Topics: Java; ohodnocení stromu dokumentu; parser; JavaCC; předpis CSS; Cascading Style Sheet; kaskádový styl; grammar; gramatika; assigning property values; CSS; stylopis
Publisher: Vysoké učení technické v Brně. Fakulta informačních technologií
Year: 2008
OAI identifier: oai:invenio.nusl.cz:235434
Download PDF:
Sorry, we are unable to provide the full text but you may find it at the following location(s):
  • http://www.nusl.cz/ntk/nusl-23... (external link)
  • Suggested articles


    To submit an update or takedown request for this paper, please submit an Update/Correction/Removal Request.