Re: [css syntax] CSS Syntax and Semantic Classes

CSS Working Group,




With semantic classes, from either @class, @xhtml:role, @rdf:type, @rdfa:typeof or @epub:type , is the concept of parallel trees, parallel structure and that of elements participating in parallel trees.  That concept, known to the CSS experts in this group, selectors and selectors-related aspects of structure in XML documents, becomes enhanced with semantic classes.


XML schema, OWL ontology as well as collections of namespaces can be of use to API to distill and utilize parallel structure.  XPath and CSS selectors could traverse distilled substructure.




@namespace epub "http://www.idpf.org/2007/ops";
[epub|type=glossary] [epub|type=glossterm] { ... }




Envisioning that the EPUB structural vocabulary utilized XML namespaces, as per something syntactically resembling:




@namespace epub "http://www.idpf.org/2007/ops";
[epub|type=epub|glossary] [epub|type=epub|glossterm] { ... }




We can consider mappings on trees to select substructure to then to describe selectors:




@namespace epub "http://www.idpf.org/2007/ops";


@where [epub|type] select /epub|type/ {
  @namespace "http://www.idpf.org/2007/ops";
  glossary glossterm { ... }
}










Kind regards,




Adam Sobieski

Received on Thursday, 6 February 2014 19:19:59 UTC