W3C home > Mailing lists > Public > www-style@w3.org > February 2014

Re: [css syntax] CSS Syntax and Semantic Classes

From: Adam <adamsobieski@hotmail.com>
Date: Thu, 6 Feb 2014 19:01:39 +0000
Message-ID: <SNT405-EAS1511C96A5C7C956824B9FA0C5940@phx.gbl>
To: "www-style@w3.org" <www-style@w3.org>
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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:18 UTC