Open g-vidal opened 1 year ago
That seems plausible. Might need a parameter to identify which namespace(s) you want copied from the source into the HTML/EPUB.
xmlns:a11y="https://schema.org/CreativeWork" might be introduced in DocBook schema to introduce the in the xml the <meta>
with the vocabulary from scheme than teh namespace should be copied by default.
OOOOOPS !
This is amistake , ACE epub3 validator checks that the attributes have the form schema:accessMode
then for epub transformation we need to produce <meta>
tags with schema shhortcut for "https://schema.org/CreativeWork" namespace.
Surely that's broken behavior on that validator. The whole point of the indirection mechanism is to decouple the prefix used in the short name from the URI.
This issue may have also its place in docbook rather than in xslTNG only but I prefer to start from the goal as various strategies are probably possible to reach the goal.
Our target is to obtain an e-pub3 populated with accessibility metadata described on this page at
Daisy.org
using vocabularies and structures fromCreativeWork
at schema.org. Ongoing work is located ongithub
w3c/a11y-discov-vocab.Here is a short example (of package.opf ?) extracted from
Daisy
.First of all my feeling is that we need to have in the schema a namespace for the subpart of
schema.org
used for accessibility. . Usingschema
as namespace as suggested by Daisy looks like a bad practice (?). My proposal should be to usea11y
=accessibility as quoted in our example, because we just need the subpart ofschema.org
and will prevent messing up with otherschema.org
entitiesAs soon as the attribute and vocabularies are available the XSL should detect this family of meta tags and treat them properly. It seems that such
<meta>
tag has to appear inpackage.opf
and probably all xhtml files to specify the values given for each part/chapter depending on its content (audio, video, images,...). The proposed structure above is just a proposal inspired fromDaisy
.