The search functionality is under construction.

IEICE TRANSACTIONS on Information

On CSS Unsatisfiability Problem in the Presense of DTDs

Nobutaka SUZUKI, Takuya OKADA, Yeondae KWON

  • Full Text Views

    0

  • Cite this

Summary :

Cascading Style Sheets (CSS) is a popular language for describing the styles of XML documents as well as HTML documents. To resolve conflicts among CSS rules, CSS has a mechanism called specificity. For a DTD D and a CSS code R, due to specificity R may contain “unsatisfiable” rules under D, e.g., rules that are not applied to any element of any document valid for D. In this paper, we consider the problem of detecting unsatisfiable CSS rules under DTDs. We focus on CSS fragments in which descendant, child, adjacent sibling, and general sibling combinators are allowed. We show that the problem is coNP-hard in most cases, even if only one of the four combinators is allowed and under very restricted DTDs. We also show that the problem is in coNP or PSPACE depending on restrictions on DTDs and CSS. Finally, we present four conditions under which the problem can be solved in polynomial time.

Publication
IEICE TRANSACTIONS on Information Vol.E104-D No.6 pp.801-815
Publication Date
2021/06/01
Publicized
2021/03/10
Online ISSN
1745-1361
DOI
10.1587/transinf.2021EDP7002
Type of Manuscript
PAPER
Category
Data Engineering, Web Information Systems

Authors

Nobutaka SUZUKI
  University of Tsukuba
Takuya OKADA
  Nihon Unisys, Ltd
Yeondae KWON
  University of Tokyo

Keyword