Re: SVG document types

Hello,

this sounds like metainformation.
My idea would be to use something like RDF(a) to provide a defined semantic 
meaning.
In SVG tiny 1.2 you can use both the attribute role and RDFa attributes within 
the SVG namespace for this.
In SVG 1.1 there is no RDFa - this seems to apply unfortunately for the SVG 2 
working draft as well. In the SVG 2 working draft the role attribute seems to 
be restricted to another purpose, therefore not applicable to provide defined 
semantic information from an own namespace unfortunately, this feature is 
borked by the draft.

Therefore here you have other options to consider for SVG 1.1 (maybe in the 
future for SVG 2 as well, if this is not improved at least to the level of SVG 
tiny 1.2 anymore):
a) Use RDFa attributes from the XHTML namespace
b) Use RDF within an element metadata for each element you want to provide 
semantic metainformation. Obviously it is slightly more complex to extract 
such information and the file size gets bigger.
c) Of course, if you provide a role attribute from you own namespace, it can 
contain defined information as well. For example this approach is used in the 
standard for digital books EPUB 3 (only for the XHTML part of the content, no 
idea why not for the SVG part as well). 

Olaf

Received on Tuesday, 22 November 2016 11:15:41 UTC