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: Fri, 7 Feb 2014 07:30:04 +0000
Message-ID: <SNT405-EAS8A946CE9949E13A84BB4FC5970@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 upon which to then select:

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

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

and also possible, on the topic of parallel trees, combinatoric structure:

<ext:thing1 rdf:type="ext:thing2 ext1:thing3">

  <ext:thing1 rdf:type="ext:thing4 ext1:thing5">




syntax resembling:

@namespace rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#";

@as [rdf|type] // a syntax for expressing a set algebra or a description logic upon the XML elements and the types in semantic attributes’ values, a mapping from a structure of XML elements to more complex structure


  // up to combinatoric structure with all three selectors matching the nested element:

  @namespace ext "...";

  thing1 > thing1 { ... }

  thing1 > thing4 { ... }

  thing2 > thing5 { ... }


Kind regards,

Adam Sobieski
Received on Friday, 7 February 2014 09:45:19 UTC

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